2 Classpath Questions - how to included generated classes in classpath so dependent Testcases compile.
I have a project setup that includes xml schemas from 3rd parties that I want to create jar files for using XMLBeans. This works fine. The xmlbeans plugin generates: generated-sources generated-classes I would also like to include test cases in the project to verify that the sample xml files in fact are validated and parsed properly. Unfortunately, mvn is failing to compile the test cases since it can't find the generated classes from the xmlbeans plugin. Does anyone have suggestions as to how I can use the resulting classes from the xmlbeans plugin in my test cases. And also, how if possible to include the generated-sources and generated-classes on the classpath so that mvn eclipse:eclipse includes them in an eclipse project? Thanks. Brian -- View this message in context: http://www.nabble.com/2-Classpath-Questions---how-to-included-generated-classes-in-classpath-so-dependent-Testcases-compile.-tf4429139s177.html#a12634948 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 Classpath Questions - how to included generated classes in classpath so dependent Testcases compile.
I'm not familiar with the xml-beans plugin, but it may be failing to add generated-sources as a source dir. I'm using to do some source generation, and I must manually add the generated-srouces as a source dir. Here's what I use plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId version1.0/version executions execution idadd-source/id phasegenerate-sources/phase goals goaladd-source/goal /goals configuration sources source${project.build.directory }/generated-sources/java/source /sources /configuration /execution /executions /plugin On 9/12/07, bkbonner [EMAIL PROTECTED] wrote: I have a project setup that includes xml schemas from 3rd parties that I want to create jar files for using XMLBeans. This works fine. The xmlbeans plugin generates: generated-sources generated-classes I would also like to include test cases in the project to verify that the sample xml files in fact are validated and parsed properly. Unfortunately, mvn is failing to compile the test cases since it can't find the generated classes from the xmlbeans plugin. Does anyone have suggestions as to how I can use the resulting classes from the xmlbeans plugin in my test cases. And also, how if possible to include the generated-sources and generated-classes on the classpath so that mvn eclipse:eclipse includes them in an eclipse project? Thanks. Brian -- View this message in context: http://www.nabble.com/2-Classpath-Questions---how-to-included-generated-classes-in-classpath-so-dependent-Testcases-compile.-tf4429139s177.html#a12634948 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sebastian Johnck ~~~ MotionBased, A Division of Garmin International 180 Harbor Dr. Sausalito, CA 94965 www.motionbased.com Coordinates: N37° 51' 33 W 122° 29' 08 ~~~
Re: 2 Classpath Questions - how to included generated classes in classpath so dependent Testcases compile.
Sorry i mean to say I'm using ant-plugin to do some source generation On 9/12/07, Sebastian Johnck [EMAIL PROTECTED] wrote: I'm not familiar with the xml-beans plugin, but it may be failing to add generated-sources as a source dir. I'm using to do some source generation, and I must manually add the generated-srouces as a source dir. Here's what I use plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId version 1.0/version executions execution idadd-source/id phasegenerate-sources/phase goals goaladd-source/goal /goals configuration sources source${project.build.directory }/generated-sources/java/source /sources /configuration /execution /executions /plugin On 9/12/07, bkbonner [EMAIL PROTECTED] wrote: I have a project setup that includes xml schemas from 3rd parties that I want to create jar files for using XMLBeans. This works fine. The xmlbeans plugin generates: generated-sources generated-classes I would also like to include test cases in the project to verify that the sample xml files in fact are validated and parsed properly. Unfortunately, mvn is failing to compile the test cases since it can't find the generated classes from the xmlbeans plugin. Does anyone have suggestions as to how I can use the resulting classes from the xmlbeans plugin in my test cases. And also, how if possible to include the generated-sources and generated-classes on the classpath so that mvn eclipse:eclipse includes them in an eclipse project? Thanks. Brian -- View this message in context: http://www.nabble.com/2-Classpath-Questions---how-to-included-generated-classes-in-classpath-so-dependent-Testcases-compile.-tf4429139s177.html#a12634948 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sebastian Johnck ~~~ MotionBased, A Division of Garmin International 180 Harbor Dr. Sausalito, CA 94965 www.motionbased.com Coordinates: N37° 51' 33 W 122° 29' 08 ~~~ -- Sebastian Johnck ~~~ MotionBased, A Division of Garmin International 180 Harbor Dr. Sausalito, CA 94965 www.motionbased.com Coordinates: N37° 51' 33 W 122° 29' 08 ~~~