*
The moose likes Ant, Maven and Other Build Tools and the fly likes Could not find artifact org.apache.maven.plugins:maven-war-plugin:pom:2.1.0 in central Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Could not find artifact org.apache.maven.plugins:maven-war-plugin:pom:2.1.0 in central" Watch "Could not find artifact org.apache.maven.plugins:maven-war-plugin:pom:2.1.0 in central" New topic
Author

Could not find artifact org.apache.maven.plugins:maven-war-plugin:pom:2.1.0 in central

Shivaprakash Shettihalli
Greenhorn

Joined: Nov 20, 2007
Posts: 18
I am getting following exception when tried to build my app with maven.
can someone help me.

[ERROR] Plugin org.apache.maven.plugins:maven-war-plugin:2.1.0 or one of its dependencies could not be resolved: Failed
to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.1.0: Could not find artifact org.apache
maven.plugins:maven-war-plugin:pom:2.1.0 in central (http://repo1.maven.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

That is because there is no 2.1.0 version. Check out http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/ to see what versions are available. So fix the plugin declaration to use the correct version (such as 2.1 or 2.1.1).


JBoss In Action
 
 
subject: Could not find artifact org.apache.maven.plugins:maven-war-plugin:pom:2.1.0 in central