Sitelet https://github.com/netty/netty/commit/baba1f4805bd8c0f05c694eed11413933fc3d15d
Skip to content

Commit baba1f4

Browse files
authored
Fail build if netty-all pulls in duplicated classes (#11804)
Motivation: We should fail the build if netty-all pulls in dependencies that produce duplicated classes on the classpath Modifications: Add maven plugin to verify we not have duplicated classes on the classpath / dependencies Result: Related to #11791
1 parent 555fcf2 commit baba1f4

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎all/pom.xml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,31 @@
181181
</execution>
182182
</executions>
183183
</plugin>
184+
<plugin>
185+
<groupId>org.basepom.maven</groupId>
186+
<artifactId>duplicate-finder-maven-plugin</artifactId>
187+
<version>1.3.0</version>
188+
<executions>
189+
<execution>
190+
<id>default</id>
191+
<phase>validate</phase>
192+
<goals>
193+
<goal>check</goal>
194+
</goals>
195+
</execution>
196+
</executions>
197+
<configuration>
198+
<failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
199+
<failBuildInCaseOfEqualContentConflict>true</failBuildInCaseOfEqualContentConflict>
200+
<failBuildInCaseOfConflict>true</failBuildInCaseOfConflict>
201+
<checkCompileClasspath>true</checkCompileClasspath>
202+
<checkRuntimeClasspath>true</checkRuntimeClasspath>
203+
<checkTestClasspath>false</checkTestClasspath>
204+
<preferLocal>true</preferLocal>
205+
<useResultFile>true</useResultFile>
206+
<resultFile>${project.build.directory}/duplicate-finder-result.xml</resultFile>
207+
</configuration>
208+
</plugin>
184209
</plugins>
185210
</build>
186211

0 commit comments

Comments
 (0)