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
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
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
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
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
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
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.
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
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
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
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
11 matches
Mail list logo