GeeCON Prague 2014*
The moose likes Ant, Maven and Other Build Tools and the fly likes Could not resolve dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Could not resolve dependencies" Watch "Could not resolve dependencies" New topic
Author

Could not resolve dependencies

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hello,

I got the following error when I execute commandline "mvn -Dmaven.test.skip=true clean install".


[INFO] ------------------------------------------------------------------------


My pom.xml file is look like this:


Your suggestion is very appreciated.

Thanks
Sam
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

If you look in Maven Central for that artifact (http://repo1.maven.org/maven2/org/apache/cxf/apache-cxf/2.4.1/) you will see that there is no JAR file there. If you look in the *.pom file you will see that the packaging type is pom, which means that this is artifact (apache-cxf) is probably just a parent POM. Thus you should remove the apache-cxf dependency.


JBoss In Action
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Thank you for the suggestion.

I have changed the settings.xml to the one shown as below:



pom.xml of the project is shown as below:



I am still getting the following error:



Thank you in advance for more suggestion.
Thanks
Sam
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Have you looked up the missing artifacts in Maven Central? I showed you how to do it for one artifact, you should be able to apply those steps to look up the others.

Also, you should fix the warning regarding the compiler plugin.
 
GeeCON Prague 2014
 
subject: Could not resolve dependencies