« Return to Thread: jaxb2:schemagen alternate source directory

RE: jaxb2:schemagen alternate source directory

by Robert Scholte :: Rate this Message:

| View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Did you adjust the sourceDirectory in the pom?
 
http://maven.apache.org/ref/3.0.4/maven-model/maven.html#class_build
 
-Robert
 
> Date: Mon, 20 Feb 2012 11:28:27 -0700

> From: ben.abernathy@...
> To: user@...
> Subject: [mojo-user] jaxb2:schemagen alternate source directory
>
> Hello,
>
> I am having some trouble getting schemagen to work with my unique use
> case. I have a project that doesn't follow the standard maven
> structure. Instead of the source files being under src/main/java, they
> are under a directory named src. For example,
> src/org/example/MyClass.java. Why? Long story short, we are using
> Equinox with the Tycho plugin and things are just this way. When using
> the jaxb2 plugin, I get the following error:
>
> [ERROR] Failed to execute goal
> org.codehaus.mojo:jaxb2-maven-plugin:1.3.1:schemagen (schemagen) on
> project org.example: Execution schemagen of goal
> org.codehaus.mojo:jaxb2-maven-plugin:1.3.1:schemagen failed: basedir
> C:\example\src\main\java does not exist -> [Help 1]
>
> Which, makes sense. Is there a way to tell the plugin to use a
> different source directory?
>
> Thank you,
>
> Ben
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>

 « Return to Thread: jaxb2:schemagen alternate source directory