aspose file tools
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
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply 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: 205
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: 5575

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: 205
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: 5575

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Could not resolve dependencies
 
Similar Threads
How to change jetty binding port number in maven.
How to change jetty binding port number in maven.
Missing CXF plugins??
Could not resolve dependencies for maven project
Incorrect hibernate version or maven ignore and didn't download hibernate jar file.