question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated sources not added to the build path with version 0.13.1 on Eclipse Neon.2 Release (4.6.2)

See original GitHub issue

pom.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 : image

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 : image

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
AnuroopSirothiacommented, Jan 2, 2018

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.

2reactions
highsourcecommented, Mar 30, 2017

Please try 0.13.2.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found