Skip to content

Instantly share code, notes, and snippets.

@jamesmorgan
Created October 13, 2012 11:36
Show Gist options
  • Save jamesmorgan/3884256 to your computer and use it in GitHub Desktop.
Save jamesmorgan/3884256 to your computer and use it in GitHub Desktop.
MavenEnforcer Plugin Example
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>commons-logging:commons-logging</exclude>
<exclude>log4j:log4j</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment