You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
both projects are build in the same run (multi module build)
the other project also has an applicationContext.xml file in it's test resources directory
I get the following reported:
[WARNING] Found duplicate and different resources in [/home/jenkins/workspace/Acme_Job/acme/module/common_pod/build/testClasses, com.acme:common_platform:0.0.1-SNAPSHOT:jar:tests]:
[WARNING] applicationContext.xml
Note: I did double-check that the tests-jar does NOT have the applicationContext.xml
When I build the projects separately, and not in the same reactor, the warning does NOT appear.
The text was updated successfully, but these errors were encountered:
The duplicate-finder is not aware that you exclude this file from the jar build (and short of interpreting the exclusion rules of the jar build, it will not be possible to do so). So in the reactor build, it will look at the contents of src/test/resources and find the file and flag it as a duplicate.
This is a limitation because of the way the plugin works. The preferLocal option might solve this for you (it was introduced in 1.1.1), using <preferLocal>false</preferLocal> will force the plugin to use the built artifacts, not the contents of the local filesystem.
In one project I have:
Then when:
tests
jar in another project,applicationContext.xml
file in it's test resources directoryI get the following reported:
Note: I did double-check that the tests-jar does NOT have the applicationContext.xml
When I build the projects separately, and not in the same reactor, the warning does NOT appear.
The text was updated successfully, but these errors were encountered: