10000 Avoid commons-math 1.x versus 2.x version clash · scijava/pom-scijava@41a50d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 41a50d9

Browse files
committed
Avoid commons-math 1.x versus 2.x version clash
1 parent 8d52f8b commit 41a50d9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,6 +2662,25 @@
26622662
<groupId>org.scijava</groupId>
26632663
<artifactId>scripting-renjin</artifactId>
26642664
<version>${org.scijava.scripting-renjin.version}</version>
2665+
<exclusions>
2666+
<exclusion>
2667+
<!--
2668+
Conflicts with commons-math:commons-math:1.x, which
2669+
ome:formats-gpl:8.0.1 depends on via edu.ucar:cdm-core:5.6.0.
2670+
It's not ideal that we are excluding the newer 2.x version of
2671+
commons-math here rather than the older 1.x version, but:
2672+
2673+
A) both of them are superseded by commons-math3 regardless; and
2674+
2675+
B) pragmatically, ome:formats-gpl is a much more common dependency
2676+
for pom-scijava-based projects than scripting-renjin is, and
2677+
we want to minimize the problems (ClassNotFoundExceptions)
2678+
people might hit when depending on formats-gpl out of the box.
2679+
-->
2680+
<groupId>org.apache.commons</groupId>
2681+
<artifactId>commons-math</artifactId>
2682+
</exclusion>
2683+
</exclusions>
26652684
</dependency>
26662685

26672686
<!-- Scripting: Scala - https://github.com/scijava/scripting-scala -->

0 commit comments

Comments
 (0)
0