Fail the build on duplicate resources or classes on the classpath

This commit is contained in:
Matt Stephenson 2012-04-25 19:47:58 -07:00
parent 381851b8ab
commit f1b5faf007
1 changed files with 72 additions and 0 deletions

View File

@ -283,6 +283,78 @@
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>com.ning.maven.plugins</groupId>
<artifactId>maven-duplicate-finder-plugin</artifactId>
<version>1.0.3</version>
<configuration>
<exceptions>
<exception>
<!-- CloudSigma bundles conflict between api and providers-->
<conflictingDependencies>
<dependency>
<groupId>org.jclouds.api</groupId>
<artifactId>cloudsigma</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jclouds.provider</groupId>
<artifactId>cloudsigma-lvs</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jclouds.provider</groupId>
<artifactId>cloudsigma-zrh</artifactId>
<version>${project.version}</version>
</dependency>
</conflictingDependencies>
<packages>
<package>org.jclouds.cloudsigma</package>
</packages>
</exception>
<exception>
<!-- Google App Engine Deps, some google classes are duplicated between packages -->
<conflictingDependencies>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>1.4.3</version>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-testing</artifactId>
<version>1.4.3</version>
<scope>test</scope>
</dependency>
</conflictingDependencies>
<packages>
<package>com.google</package>
</packages>
</exception>
</exceptions>
<ignoredResources>
<!-- For all the jetty packages -->
<ignoredResource>about\.html</ignoredResource>
<!-- There are several situations where a test-jar and another test-jar or a bundle conflict on these artifacts -->
<ignoredResource>log4j.xml</ignoredResource>
<ignoredResource>os.xml</ignoredResource>
<ignoredResource>virtualhardwaresection.xml</ignoredResource>
<ignoredResource>logback.xml</ignoredResource>
<ignoredResource>amzn_images.xml</ignoredResource>
<ignoredResource>test.jks</ignoredResource>
<ignoredResource>CreateInternetService-options-test.xml</ignoredResource>
</ignoredResources>
<failBuildInCaseOfConflict>true</failBuildInCaseOfConflict>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>clojure-maven-plugin</artifactId>