• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shivaprakash Shettihalli
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic