'Warning conflict when starting spring applicaiton : "scanned from multiple locations"
When staritng my spring application, each module return a lot of warning. There are all like this:
org.threeten.bp.temporal.TemporalAdjusters$DayOfWeekInMonth scanned from multiple locations: jar:file:///home/.m2/repository/org/threeten/threetenbp/1.5.0/threetenbp-1.5.0.jar!/org/threeten/bp/temporal/TemporalAdjusters$DayOfWeekInMonth.class, jar:file:///home/.m2/repository/com/google/api-ads/google-ads/16.0.0/google-ads-16.0.0.jar!/org/threeten/bp/temporal/TemporalAdjusters$DayOfWeekInMonth.class
This line added in pom.xml doesn't fix the issue:
<useManifestOnlyJar>false</useManifestOnlyJar>
So I run the plugin duplicate-finder-maven-plugin and I have a generated xml with all conflcits like those:
<results>
<result name="compile" conflictState="content-different" failed="false">
<conflicts>
<conflict name="jakarta.xml.bind:jakarta.xml.bind-api:2.3.3, javax.xml.bind:jaxb-api:2.3.1">
<conflictResults>
<conflictResult name="META-INF.versions.9.javax.xml.bind.ModuleUtil" type="classes" excepted="false" failed="false" printed="true" conflictState="content-different">
<conflictNames>
<conflictName name="jakarta.xml.bind:jakarta.xml.bind-api:2.3.3" artifact="true" localFolder="false" bootClasspathElement="false">
<artifact artifactId="jakarta.xml.bind-api" groupId="jakarta.xml.bind" version="2.3.3" versionRange="2.3.3" type="jar"/>
</conflictName>
<conflictName name="javax.xml.bind:jaxb-api:2.3.1" artifact="true" localFolder="false" bootClasspathElement="false">
<artifact artifactId="jaxb-api" groupId="javax.xml.bind" version="2.3.1" versionRange="2.3.1" type="jar"/>
</conflictName>
</conflictNames>
</conflictResult>
And I don't know how I can fix this.
Thanks for your help
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
