Skip to content

Commit

Permalink
Merge pull request #1303 from tfr42/improvedEnforcerPlugin
Browse files Browse the repository at this point in the history
upgraded enforcer plugin and added ban duplicate classes rule
  • Loading branch information
stephanr authored Apr 13, 2022
2 parents edc729f + 79a0852 commit 2bf5a97
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<version>3.0.0</version>
<executions>
<execution>
<id>enforce-versions</id>
Expand All @@ -334,7 +334,43 @@
</rules>
</configuration>
</execution>
<execution>
<id>enforce-ban-duplicate-classes</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<banDuplicateClasses>
<ignoreClasses>
<ignoreClass>javax.activation.*</ignoreClass>
<ignoreClass>javax.servlet.*</ignoreClass>
<ignoreClass>javax.xml.stream.*</ignoreClass>
<ignoreClass>org.apache.commons.logging.*</ignoreClass>
<ignoreClass>org.w3c.css.*</ignoreClass>
<ignoreClass>org.w3c.dom.*</ignoreClass>
<ignoreClass>com.sun.media.*</ignoreClass>
<ignoreClass>oracle.xml.*</ignoreClass>
</ignoreClasses>
<scopes>
<scope>compile</scope>
<scope>provided</scope>
</scopes>
<findAllDuplicates>true</findAllDuplicates>
<ignoreWhenIdentical>true</ignoreWhenIdentical>
</banDuplicateClasses>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.5.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 2bf5a97

Please sign in to comment.