> I have written a plugin to generate some java classes, and would like to
> compile them.
I'm not sure if I understood you correctly. Do you want your plugin to tell
the currently running maven project that it should also compile the java
classes under target/foo that your plugin has just generated ? If this is
true, then use the following procedure
- pass the maven plugin to your mojo using the following code:
/**
* The maven project in which the plugin runs.
* @parameter expression="${project}"
* @required
* @readonly
*/
private MavenProject project;
- in the execute method, add the following line:
project.addCompileSourceRoot(path_to_generated_classes);
If you wanted to do somethinge else, please clarify.
Regards,
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]