Permalink
Browse files

Add Ning's maven-duplicate-finder-plugin to all rest-server builds

  • Loading branch information...
1 parent ea8da24 commit fadb66b85231e3393ce080ec96dfafd8fdcdc02e @mattstep committed Apr 14, 2012
Showing with 94 additions and 0 deletions.
  1. +94 −0 rest-server-base/pom.xml
View
@@ -521,6 +521,100 @@
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.ning.maven.plugins</groupId>
+ <artifactId>maven-duplicate-finder-plugin</artifactId>
+ <version>1.0.3</version>
+ <configuration>
+ <exceptions>
+ <exception>
+ <!-- Same jersey versions... -->
+ <conflictingDependencies>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-server</artifactId>
+ <version>1.9.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-core</artifactId>
+ <version>1.9.1</version>
+ </dependency>
+ </conflictingDependencies>
+ <resources>
+ <resource>META-INF/jersey-module-version</resource>
+ </resources>
+ </exception>
+
+ <exception>
+ <!-- For bval-jsr303 -->
+ <conflictingDependencies>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils-core</artifactId>
+ <version>1.8.3</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2.1</version>
+ </dependency>
+ </conflictingDependencies>
+ <classes>
+ <class>org.apache.commons.collections.ArrayStack</class>
+ <class>org.apache.commons.collections.Buffer</class>
+ <class>org.apache.commons.collections.BufferUnderflowException</class>
+ <class>org.apache.commons.collections.FastHashMap</class>
+ </classes>
+ </exception>
+
+ <exception>
+ <!-- https://github.com/apache/httpcore/commit/1411f34092eb44c0a689410291dc57adc62edee5 -->
+ <conflictingDependencies>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <version>4.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpcore</artifactId>
+ <version>4.2-beta1</version>
+ </dependency>
+ </conflictingDependencies>
+ <classes>
+ <class>org.apache.http.annotation.GuardedBy</class>
+ <class>org.apache.http.annotation.Immutable</class>
+ <class>org.apache.http.annotation.NotThreadSafe</class>
+ <class>org.apache.http.annotation.ThreadSafe</class>
+ </classes>
+ </exception>
+ </exceptions>
+
+ <ignoredResources>
+ <!-- For all the jetty packages -->
+ <ignoredResource>about\.html</ignoredResource>
+ </ignoredResources>
+
+ <ignoredDependencies>
+ <!-- jRuby complete isn't very safe, but we only use it in the rack project -->
+ <dependency>
+ <groupId>org.jruby</groupId>
+ <artifactId>jruby-complete</artifactId>
+ </dependency>
+ </ignoredDependencies>
+
+ <failBuildInCaseOfConflict>true</failBuildInCaseOfConflict>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>

0 comments on commit fadb66b

Please sign in to comment.