David Jencks wrote:

2.             Plugin plugin = (Plugin) 
project.getModel().getBuild().getPluginsAsMap().get("org.apache.geronimo.buildsupport:car-maven-plugin");
plugin.getExecutions() has changed.  [...]  Now it contains elements for every 
mojo in the plugin.

MavenProject.getModel() is supposed to deliver the effective model, as shown by "mvn help:effective-pom". As of Maven 3.x, the effective model also reflects any plugin executions contributed by lifecycle mappings for the project's packaging.

Or, is there a way to get object trees for each unmerged configuration so I can 
do it in my plugin code?

There is MavenProject.getModel() for the effective model, i.e. including inheritance, interpolation, profiles and plugin management, and MavenProject.getOriginalModel() for the raw model, i.e. as read from the mere pom.xml. I can't offer much more with more concrete details about your use case.


Benjamin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to