|Maven JAXB Generated Classes not in Eclipse Classpath [message #646994]
||Mon, 03 January 2011 17:12
| Ryan S.
Registered: January 2011
I'm using the maven-jaxb2-plugin from org.jvnet.jaxb2.maven2 to generate model objects. The plugin successfully parses my XSD, generates the Java Source (in target/generated-sources/xjc), compiles, and packages the class files in a JAR file.
Using just Maven, the project builds fine. Maven knows about the generated classes.
However in Eclipse (using the Sonatype Maven integration plugin), the generated classes aren't in the Eclipse classpath. Eclipse reds the generated class imports.
I had to edit the Eclipse classpath to include target/generated-sources/xjc so Eclipse resolves generated classes, but I do not think its a good idea to put target directories in the classpath.
How do I get Eclipse to recognize the generated classes?
Here is my POM:
Powered by FUDForum
. Page generated in 0.01522 seconds