So I have some code which does

MavenProject project;

project.getPluginManagement().getPlugins();

This gives me a list of all the plugins in the pluginManagement section....
however this is the effective plugin management list.

So then I go and walk up the tree of parents and check to see what they see
in their pluginManagement sections... and I even create the super-pom and
have a look at what it defines.

All well and good,... so now I can exclude from my list the definitions that
come from up the parent tree....

except that now I'm excluding too much!

If my project defines in pluginManagement, for example maven-javadoc-plugin
as version 2.4... i'll exclude that from my list as the super-pom defines
version 2.4 of maven-javadoc-plugin

Any pointers?

-Stephen

Reply via email to