Skip to content

Commit 7937f4c

Browse files
committed
Punt on Spark and Dropwizard
Their dependency trees are large and messy. They include artifacts with classes that overlap different artifacts elsewhere in the ecosystem. It is not feasible to address all the problems without fixing upstream dependency issues.
1 parent b307cf5 commit 7937f4c

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

pom.xml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,9 @@
206206
* ome:jxrlib-all + javax.xml.bind:jaxb-api or jakarta.xml.bind:jakarta.xml.bind-api
207207
* ome:jxrlib-all + org.glassfish.jaxb:jaxb-runtime
208208
* ome:jxrlib-all + org.glassfish.jaxb:txw2
209-
* com.codahale.metrics:metrics-logback + io.dropwizard.metrics:metrics-logback
210-
* com.codahale.metrics:metrics-graphite + io.dropwizard.metrics:metrics-graphite
211209
* com.github.jnr:jnr-ffi + org.jruby:jruby-core
212210
-->
213-
<allowedDuplicateClasses>META-INF/versions/9/javax.xml.bind.ModuleUtil,com.codahale.metrics.graphite.*,com.codahale.metrics.logback.InstrumentedAppender,com.sun.istack.*,com.sun.xml.bind.*,com.sun.xml.txw2.*,javax.xml.bind.*,jnr.ffi.*,org.apache.hadoop.yarn.*.package-info,org.apache.spark.unused.UnusedStubClass,org.hibernate.stat.ConcurrentStatisticsImpl,org.junit.runner.Runner</allowedDuplicateClasses>
211+
<allowedDuplicateClasses>META-INF/versions/9/javax.xml.bind.ModuleUtil,com.com.sun.istack.*,com.sun.xml.bind.*,com.sun.xml.txw2.*,javax.xml.bind.*,jnr.ffi.*,org.apache.hadoop.yarn.*.package-info,org.apache.spark.unused.UnusedStubClass,org.hibernate.stat.ConcurrentStatisticsImpl,org.junit.runner.Runner</allowedDuplicateClasses>
214212

215213
<!--
216214
NB: We override these properties to make the enforcer happy.
@@ -234,6 +232,19 @@
234232
If you need to override the version of a particular component, then simply
235233
override that component's version property in your POM's <properties>
236234
section, rather than hardcoding them.
235+
236+
WARNING: While most artifacts in this BOM can be successfully combined,
237+
there are a handful of exceptions requiring some downstream effort:
238+
239+
- net.imagej:imagej-server depends on Dropwizard, which ships its own
240+
metrics-graphite and metrics-logback libraries, among other issues.
241+
- org.apache.spark:spark-core_2.11 has a large number of dependencies,
242+
some of which are incompatible with other artifact trees in this BOM;
243+
e.g., Spark depends on kryo-shaded while Bio-Formats depends on kryo.
244+
245+
If you make use of any of the above artifacts, you may need to add
246+
dependency exclusions, ignore additional duplicate class patterns,
247+
and/or manually tune your runtime classpath.
237248
-->
238249

239250
<!-- SciJava - https://github.com/scijava -->

0 commit comments

Comments
 (0)