You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2019/03/05 15:17:14 UTC

[GitHub] [maven-enforcer] destebanm commented on issue #36: [MENFORCER-142] documentation - add example for checking rules via cli

destebanm commented on issue #36: [MENFORCER-142] documentation - add example for checking rules via cli
URL: https://github.com/apache/maven-enforcer/pull/36#issuecomment-469718960
 
 
   HI!
   
   I am using maven-enforcer-plugin:3.0.0-M2.
   
   I have this in my pom.xml and it is working fine when `mvn verify`
   
   ```
   <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-enforcer-plugin</artifactId>
                   <executions>
                       <execution>
                           <id>enforce-banned-dependencies</id>
                           <goals>
                               <goal>enforce</goal>
                           </goals>
                           <configuration>
                               <rules>
                                   <bannedDependencies>
                                       <excludes>
                                           <exclude>x.y:logger:(,10.93)</exclude>
                                           <exclude>x.y:soap-utils:(,10.93)</exclude>
                                           <exclude>x.y:correlation-id:(,10.93)</exclude>
                                       </excludes>
                                   </bannedDependencies>
                               </rules>
                               <fail>true</fail>
                           </configuration>
                       </execution>
                   </executions>
               </plugin>
   ```
   Is there any way to get rid of pom.xml setup and get the same behaviour with the CLI?
   
   Thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services