My maven build emits several INFOs like this:
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.springsource.com/maven/bundles/release/com/ibm/icu/icu4j/3.4.1/icu4j-3.4.1.pom
[INFO] Unable to find resource 'com.ibm.icu:icu4j:pom:3.4.1' in repository com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release)
Downloading: http://repository.springsource.com/maven/bundles/external/com/ibm/icu/icu4j/3.4.1/icu4j-3.4.1.pom
[INFO] Unable to find resource 'com.ibm.icu:icu4j:pom:3.4.1' in repository com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external)
Downloading: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/3.4.1/icu4j-3.4.1.pom
The build does eventually succeed, but without ever downloading icu4j. Then the next time I build is exactly the same.
I found this very related question. What I don't understand is how does the build succeed if it really can't find the resource? And if it does find it in the end, why is the resource being downloaded again?
I did find my .m2 folder contains a folder by the name of com/ibm/icu/icu4j/3.4.4/
, so I'm deducing there is a conflicting dependency somewhere in my pom structure.
How do I resolve this conflict? Again, the project does compile, but it tries to download files on every build, and I'd rather have it compile cleanly.