I think there is about to be a major revision of the castor plugin - check the patch in JIRA under the MOJO subproject.
What needs to be done is something like: project.addCompileSourceRoot( ... ) On 11/3/05, Christoph Schönfeld <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to Maven and would like integrate Castor to generate source > code from XML Schema files. > > I found a Castor plug-in for Maven 2.0 at > http://svn.mojo.codehaus.org/trunk/mojo/castor-maven-plugin which I > built and installed the plug-in in my local maven repository. > > I have the attached pom.xml which uses the plug-in. Code generation > works fine. The code is generated in target/generated-sources/castor. > > However, I have been unable to find out how to tell Maven to include the > generated source files in the build. When I call 'mvn compile' I get > error messages from the compiler stating that the generated classes were > not found. > > I'd be glad about any hints. > > > Christoph > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
