[
https://issues.jboss.org/browse/JBIDE-8208?page=com.atlassian.jira.plugin...
]
Snjezana Peco commented on JBIDE-8208:
--------------------------------------
I have tried to create a project based on the
org.jboss.weld.archetypes:jboss-javaee6-webapp:1.0.1.Beta2 archetype and noticed two
issues:
1) CDI and JSF facet aren't added when creating a project (a bug in the JBoss Maven
configurators. They don't check transitive dependencies.). See JBIDE-8252.
2) JDT Maven configurator breaks annotation processing so that it removes the
target/generated-sources/annotations directory (annotation processor source directory)
from the classpath.
This can be reproduced as follows:
- create a javaee6 project and enable annotation processing as Dan Allen described in
https://issues.jboss.org/browse/WELD-835?focusedCommentId=12577274&pa...
- right-click the project, select Maven>Update Project Configuration
Annotation processing won't work because the Maven JDT Configurator has removed the
target/generated-sources/annotations directory from the classpath. There are several
issues related to the way m2eclipse configures a classpath. See
https://issues.sonatype.org/browse/MNGECLIPSE-2367
The problem can be solved by right-clicking the project, selecting Properties>Java
Compiler>Annotation Processing, unchecking Enable annotation processing, clicking
Apply, checking Enable annotation processing and clicking Apply again. However, calling
Maven>Update Project Configurator will break annotation processing again.
A solution would be to create a maven configurator (or change the maven hibernate
configurator) that would check for existing the org.hibernate:hibernate-jpamodelgen
dependency and if exists, the configurator would enable annotation processing and would
add the correspondent factory path. In this case, .factorypath and .settings, Dan added
to the archetype, wouldn't be necessary.
Improve how annotation processors are setup/detected via
maven/m2eclipse
------------------------------------------------------------------------
Key: JBIDE-8208
URL:
https://issues.jboss.org/browse/JBIDE-8208
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: maven
Reporter: Max Rydahl Andersen
Fix For: 3.2.1
Any way m2eclipse can setup and detect annotation processors ?
Why isn't annotation processor not enabled by default when generating the .settings
files for it ?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira