Skip to content

Commit a37ac8b

Browse files
committed
Add indirection level for known duplicate classes
1 parent 4ee1c23 commit a37ac8b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,14 @@
248248
Also in: org.jmockit:jmockit
249249
Enables: junit:junit + org.jmockit:jmockit
250250
-->
251-
<allowedDuplicateClasses>com.esotericsoftware.kryo.*,com.esotericsoftware.minlog.*,com.esotericsoftware.reflectasm.*,com.google.inject.*,jnr.ffi.*,org.apache.hadoop.yarn.*.package-info,org.apache.spark.unused.UnusedStubClass,org.hibernate.stat.ConcurrentStatisticsImpl,org.junit.runner.Runner</allowedDuplicateClasses>
251+
<scijava.allowedDuplicateClasses>com.esotericsoftware.kryo.*,com.esotericsoftware.minlog.*,com.esotericsoftware.reflectasm.*,com.google.inject.*,jnr.ffi.*,org.apache.hadoop.yarn.*.package-info,org.apache.spark.unused.UnusedStubClass,org.hibernate.stat.ConcurrentStatisticsImpl,org.junit.runner.Runner</scijava.allowedDuplicateClasses>
252+
<!--
253+
NB: The scijava.allowedDuplicateClasses property above makes it easier to
254+
append to the list of allowed duplicate classes in downstream projects.
255+
Simply override the property in your POM with something like this:
256+
<allowedDuplicateClasses>${scijava.allowedDuplicateClasses},com.example.AnotherDuplicate</allowedDuplicateClasses>
257+
-->
258+
<allowedDuplicateClasses>${scijava.allowedDuplicateClasses}</allowedDuplicateClasses>
252259

253260
<!--
254261
NB: We override these properties to make the enforcer happy.

0 commit comments

Comments
 (0)