[m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Mick Knutson
I have java and xml files being generated and I want to know where to put them in order for them to be compiled and included into my war? -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Jason van Zyl
On 8 Jun 07, at 4:27 PM 8 Jun 07, Mick Knutson wrote: I have java and xml files being generated and I want to know where to put them in order for them to be compiled and included into my war? It's not where you put, but telling Maven there are new sources and new resources: From the

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Mick Knutson
Well, I added the source to ./target/generated-sources/* With adding the includes to my compiler like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Jason van Zyl
On 8 Jun 07, at 5:02 PM 8 Jun 07, Mick Knutson wrote: Well, I added the source to ./target/generated-sources/* Look at the example I showed you. This will not work and is not recommended. Your plugin that generates the sources must use the reference of the MavenProject and add the

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Mick Knutson
But all I am doing is calling Oracle's genInterface via a bat file On 6/8/07, Jason van Zyl [EMAIL PROTECTED] wrote: On 8 Jun 07, at 5:02 PM 8 Jun 07, Mick Knutson wrote: Well, I added the source to ./target/generated-sources/* Look at the example I showed you. This will not work and

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Wayne Fay
You should make a real plugin. Its really simple. Then you can use the add source root bit. Wayne On 6/8/07, Mick Knutson [EMAIL PROTECTED] wrote: But all I am doing is calling Oracle's genInterface via a bat file On 6/8/07, Jason van Zyl [EMAIL PROTECTED] wrote: On 8 Jun 07, at 5:02

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Mick Knutson
if this utility is putting my gen'd source into ./target/generated-source then why do I need to create a plugin just to have maven compiler pick it up? On 6/8/07, Wayne Fay [EMAIL PROTECTED] wrote: You should make a real plugin. Its really simple. Then you can use the add source root bit.

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Tom Huybrechts
Or use the build-helper plugin http://mojo.codehaus.org/build-helper-maven-plugin/howto.html On 6/8/07, Wayne Fay [EMAIL PROTECTED] wrote: You should make a real plugin. Its really simple. Then you can use the add source root bit. Wayne On 6/8/07, Mick Knutson [EMAIL PROTECTED] wrote: But

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Jason van Zyl
Perfect. On 8 Jun 07, at 5:46 PM 8 Jun 07, Tom Huybrechts wrote: Or use the build-helper plugin http://mojo.codehaus.org/build-helper-maven-plugin/howto.html On 6/8/07, Wayne Fay [EMAIL PROTECTED] wrote: You should make a real plugin. Its really simple. Then you can use the add source root

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Mick Knutson
I am trying that, but get an artifact error: [0] inside the definition for plugin: 'build-helper-maven-plugin'specify the following: configuration ... artifactsVALUE/artifacts /configuration. Here is what I used: plugin groupIdorg.codehaus.mojo/groupId

Re: [m2] where to put gen-src so it will get compiles and packaged...???

2007-06-08 Thread Mick Knutson
A bit further as I have the java files being compiled and added, but not my xml file: plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId executions execution