Generated sources not added to the build path with version 0.13.1 on Eclipse Neon.2 Release (4.6.2)
See original GitHub issuepom.xml
:
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>${maven-jaxb2-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generateDirectory>${project.build.directory}/generated-sources/jaxb</generateDirectory>
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
<generatePackage>com.foo.bar.pojo</generatePackage>
</configuration>
</plugin>
</plugins>
</build>
After a mvn clean install
with <maven-jaxb2-plugin.version>0.12.1</maven-jaxb2-plugin.version>
, no problem. The genared-sources
folder is added to the build path :
With <maven-jaxb2-plugin.version>0.13.1</maven-jaxb2-plugin.version>
:
I got an error on the <execution> in the pom.xml
: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate failed: A required class was missing while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate: com/sun/xml/bind/api/ErrorListener
And the genared-sources
folder is not added to the build path :
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Add generated sources to classpath - Stack Overflow
It generate my classes in the correct directory, but on Eclipse Neon.2 Release (4.6.2), the folder is not automaticaly added to the classpath....
Read more >Maven JAXB Generated Classes not in Eclipse Classpath
Using just Maven, the project builds fine. Maven knows about the generated classes. However in Eclipse (using the Sonatype Maven integration ...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
... add binarys to $PATH" status:RESOLVED resolution:OBSOLETE severity:normal ... Bug:220837 - "fuse device not created (built in kernel)" status:RESOLVED ...
Read more >Untitled
... bval-parent-1.1.1-source-release.zip bval.spec byacc.spec byacc.tar.gz ... catch1-1.12.2.tar.gz catch1.spec cbi-plugins.spec org.eclipse.cbi-org.eclipse ...
Read more >Untitled
Initial package - Added action_controller dependency - Created -doc subpackage - Fixed version dependencies - Removed unused macros - initial packaging for ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is Eclipse issue and not maven-jaxb2-plugin issue. Start Eclipse using JDK instead of JRE. For example, in eclipse.ini make sure you have an entry like shown below:-
-vmC:\Program Files\<JDK_HOME>\bin\javaw.exe-startup
instead of JRE. Hope this solves the problem.Please try 0.13.2.