>From the XDoclet plugin, they create a path element and then add it to the
maven.compile.src.set:
<path id="jmxdoclet.java.compile.src.set"
location="${maven.build.dir}/xdoclet/jmxdoclet"/>
<maven:addPath id="maven.compile.src.set"
refid="jmxdoclet.java.compile.src.set"/>
I am not sure if that's the same as modifying maven.compile.source but worth
a try if you are out of luck.
Charles
-----Original Message-----
From: Lester Ward [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:34 PM
To: 'Turbine Maven Users List'
Subject: RE: Teddy-bear question
> 3) Compile the generated code....
>
> Which is where I am scratching my head...
> How do I compile the generated source?
> Is it as simple as attainGoal for java:jar ?
I'm a bit new to this myself, I believe it is just that simple. One of the
whole points of Maven is to do what would normally take you 20 lines of make
file code and do it in ZERO lines of code. I've found it difficult to shake
myself out of the mentality of blindly using the script language to build
process without first checking if a plugin already does what I want.
> How do I change the src
> directory (the generated code is in a dir called /gen)?
With the documentation being... spotty (and in flux), the best way to figure
this stuff out (I think) is to look at the plugin code in the Maven plugin
directory. In this case, check out:
maven\plugins\maven-java-plugin-1.1\plugin.jelly
In this file, you can see a line that says:
<j:set var="source" value="${maven.compile.source}" />
>From this, it is a pretty good bet (and I'm just pulling this out of my ass
here, as I don't understand it that well) that if you override
maven.compile.source in your build.properties file, that would probably take
care of it. It might be more complicated, but that should be a place to
start.
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>