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

Reply via email to