Share on Google+Share on Google+

Java Coder
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
1 Answer(s)      2 years and 10 months ago
Posted in : Maven

Hi,

I am creating a project using following command:

Its giving following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:2.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.archetype:archetype-descriptor:jar:2.2, org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-5, org.codehaus.groovy:groovy:jar:1.8.3: Could not transfer artifact org.apache.maven.archetype:archetype-descriptor:jar:2.2 from/to ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2): Access denied to: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/archetype/archetype-descriptor/2.2/archetype-descriptor-2.2.jar , ReasonPhrase:Forbidden. -> [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

Suggest me the solution.

thanks

Ads

View Answers

May 30, 2014 at 12:16 PM


Hi,

There was some error with the settings.xml file. I deleted the file settings.xml from the .m2 directory and now its working.

You might check the configuration in the settings.xml file and try to resolve the issue.

Thanks










Related Tutorials/Questions & Answers:
Tutorials   
Java Spring Hibernate Struts Training Maven jars How to add Apache Commons IO in pom.xml file? maven javassist dependency maven mysql jdbc driver spring modelandview maven dependency org.springframework.web maven org.springframework.stereotype maven How to convert eclipse project to Maven How to create spring 4 hibernate 4 maven example program? mysql maven dependency package javax.servlet does not exist package javax.validation does not exist Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate Want to add a resource in the build directory that's created when i run an mvn assembly:assembly command. Pls help! Error with Maven while deploying the war file Error with Maven while deploying the war file pom.xml local jar pom.xml local jar Maven with eclipse maven fortify plugin How to give path to the Dfile? How To get DgroupId while using maven. maven build failed maven build failed Moving projects from tomcat-6.0 to jboss 5.0.1 GA Local repository in Maven build failure error with maven How to Configure pom.xml file in Maven ? pls send maven interview questions Local Maven Depenency maven subversion issue maven subversion issue validation java - Maven Maven's order of inheritance including jar file in maven pom.xml Mojo java - Maven generation - Maven Maven 2 - Maven java - Maven Mockstrutstest case in Weblogic - Maven java - Maven merge two war files Maven - Maven merge two war files Maven Exclusion - Maven MyEclipse - Maven java - Maven Maven Project Build fails - Maven

Ads

 
Advertisement null

Ads