Hi, When i'm creating the maven archetype folder structure the below is displayed.
Please do the needful H:\Practice\maven>mvn archetype:generate -DgroupId=com.mkyong -DartifactId=CounterWebApp -DarchetypeArtifactId=maven-archetype-webapp -Dinte ractiveMode=false [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom --- Downloading: http://repo.maven.apache.org/maven2/org/apache/ant/ant/1.8.1/ant-1.8.1.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.087s [INFO] Finished at: Thu May 16 09:02:13 IST 2013 [INFO] Final Memory: 5M/78M [INFO] ------------------------------------------------------------------------ *[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: Executi* *on 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: Could not transfer artifact org.apache.ant:ant:jar:1.8.1 from/to central (http:* *//repo.maven.apache.org/maven2): GET request of: org/apache/ant/ant/1.8.1/ant-1.8.1.jar from central failed: Premature end of Content-Length* * delimited message body (expected: 1514270; received: 2491 -> [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* Thanks, Siddu
