My maven project in Eclipse Kepler will not build when invoking "Run As -> maven install" or "Run As-> Maven build.... clean install".
I get the following error:
[ERROR] Failed to execute goal on project SSLibrary: Could not resolve dependencies for project com.SSLibrary:jar:1.1.0-SNAPSHOT: Could not find artifact org.jacorb:jacorb:jar:2.3.2-redhat-4 in artifactory-releases (xxx/libs-release-local) -> [Help 1]
My pom.xml in eclipse has a red x stating:
Multiple annotations found at this line: - Missing artifact org.jacorb:jacorb:jar:2.3.2-redhat-4 - Missing artifact com.sun:tools:jar:1.6
However, executing a mvn install from the command line is successful. I can also see the org.jacorb.jacorb.jar file, version 2.3.2-redhat-4, in my local repo.
Its almost like Eclipse is playing by different rules.
There can be a couple of reasons why a Maven build fails in Eclipse but works by command line.
Maven -> Disable Workspace Resolution
(you'll have to have the other project artifacts installed in your local repo first)Edit: In order to try to solve the issue about the error shown by Eclipse in the pom.xml file, once you have checked the previous points (the last one is not needed, in that case), you can also try this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With