Commit 37508f4
committed
Prefer conflict-resolved maven dependencies
The AbstractResolveDependencies class, when building a list of Maven
dependencies to check, will now use the "getRelatedArtifact" method if
it is available. This will return the coalesced version of an artifact
when there is a conflict between dependencies with the same groupId and
artifactId, but different versions.
This fixes the BanDuplicateClasses to no longer detect conflicts between
multiple versions of the same GA combination.1 parent 900c7eb commit 37508f4
File tree
1 file changed
+8
-2
lines changed- src/main/java/org/scijava/maven/plugin/enforcer
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
0 commit comments