Am 27.09.2012 15:07, schrieb Jörg Schaible: > Sascha Vogt wrote: >> I need to find out if the dependency is a Maven plugin. With Maven 2.x >> one could check the type by comparing Artifact.getType() to >> "maven-plugin". With Maven 3 this returns now "jar" instead of >> "maven-plugin". >> Is there any other way to find out if a dependency is a Maven plugin? >> Any pointers to the API would be greatly appreciated! >> [snip] > > Why do you want to know? In M2 a plugin should never be a dependency of > another one anyway, because you will face all kind of unexpected effects due > to the different classloader model. The idea was to have one Mojo extend another Mojo. There is also a maven-inherit-plugin out there (https://github.com/ops4j/org.ops4j.pax.construct/tree/master/maven-inherit-plugin) which suffers from the same issue.
What do you mean by different classloader model? Greetings -Sascha- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
