You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Papiež Vítězslav <Vi...@autocont.cz> on 2011/07/15 14:25:29 UTC
exclude plugin dependencies
Hello,
Is there any way how to exclude plugin dependency?
I have parent pom with plugin
...
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<dependencies>
<dependency>
<groupId>cz.autocont.internal</groupId>
<artifactId>Super_CheckStyle</artifactId>
...
And in the child pom I have
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<dependencies>
<dependency>
<groupId>cz.autocont.internal</groupId>
<artifactId>Specific_CheckStyle</artifactId>
What I need is to remove depency from the parent pom. Why I am doing this. I have in the project Super_CheckStyle definitions of the checkstyle and suppressions. In the project Specific_Checkstyle is customized suppressions.xml file. Because of the maven lifecycle Super_CheckStyle project is used during child installation (mvn install). Am I able to force maven to use Specific_checkstyle project?
Thanks for the help
Vita
Re: exclude plugin dependencies
Posted by carlspring <ca...@gmail.com>.
Hi,
You can use artifact exclusions for plugin dependencies as well.
For example:
<plugins>
<plugin>
<groupId>....</groupId>
<artifactId>...</artifactId>
<version>...</version>
<dependencies>
<dependency>
<groupId>kung.fu</groupId>
<artifactId>kick</artifactId>
<version>1.2</version>
<exclusions>
<exclusion>
<groupId>com.foo</groupId>
<artifactId>bar</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Good luck,
Martin
--
View this message in context: http://maven.40175.n5.nabble.com/exclude-plugin-dependencies-tp4590474p4590488.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org