Thanks for the hint, but it seems the <properties> section can't contain
complex values (I need an arrayList).
The dirty-but-working way that i've found works like this:
Xpp3Dom aJavadocPluginConfiguration =
project.getReportConfiguration("org.apache.maven.plugins",
"maven-javadoc-plugin", null);
<mess around with Xpp3Dom objects, setting the desired values>
Iterate over project.getReportPlugins(), invoking setConfiguration() on
the plugin matching the desired artifactId.
It may not be beautiful, but unless someone comes up with a better idea,
I don't know how to do it in a cleaner way.
Michael
One other note: if your mojos live within the same plugin, you can use:
AbstractMojo.getContext(): Map
to pass context information. It's a little cleaner for intra-plugin
communications.
-j
Michael Böckling wrote:
Hi,
this is the last one for today, I hope. :-)
I wonder, now that I have a List containing links to external Javadoc
URLs, how to tell the Javadoc-Plugin about it.
Javadoc has a "link" property that accepts an ArrayList of external
links.
Inside my custom plugin, I tried this:
project.getProperties().put("jlinks", aJdocLinks);
and this:
project.getModel().getProperties().put("jlinks", aJdocLinks);
After the plugin has executed, I tried to reference those properties
in my POM, in the configuration section for the javadoc Plugin:
<links>${project.properties.jlinks}</links>
Turns out it doesn't work (surprise).
How would I go about this? Can't be that hard passing values to plugins?
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
[EMAIL PROTECTED]; http://www.giniality.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]