Anders,i've tried the below error is displayed(PFA text file for more details)
Downloading: http://repo.maven.apache.org/maven2/org/apache/ant/ant/1.8.1/ant-1.8.1.jar Downloaded: http://repo.maven.apache.org/maven2/antlr/antlr/2.7.7/antlr-2.7.7.jar (435 KB at 18.8 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar(276 KB at 36.0 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar(562 KB at 14.4 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar(5394 KB at 51.7 KB/sec) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4:15.482s [INFO] Finished at: Thu Sep 26 13:12:08 IST 2013 [INFO] Final Memory: 6M/58M [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: 2308 -> [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 maven_archetype.txt<https://docs.google.com/file/d/0B0ZsdkvIfx5VS0p1Ql9mZUVQLTA/edit?usp=drive_web> On Thu, Sep 26, 2013 at 11:00 AM, Anders Hammar <[email protected]> wrote: > Did you try what I suggested? > > /Anders (mobile) > Den 25 sep 2013 19:01 skrev "Siddu Patil" <[email protected]>: > > > Hi Andreas, > > > > I'm able to create archetype through eclipse but not with command prompt. > > > > And when i type in command prompt mvn -version the below details are > > displayed > > > > G:\cq\maven_2>mvn -version > > Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530) > > Maven home: C:\Program Files (x86)\apache-maven-3.0.4\bin\.. > > Java version: 1.6.0_32, vendor: Sun Microsystems Inc. > > Java home: C:\Program Files\Java\jdk1.6.0_32\jre > > Default locale: en_IN, platform encoding: Cp1252 > > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > > > > Please guide me here > > > > Thanks, > > Siddu > > > > > > On Fri, May 17, 2013 at 1:27 PM, Anders Hammar <[email protected]> > wrote: > > > > > Could you try just executing > > > mvn archetype:generate > > > and then do the selection through ui. > > > > > > /Anders > > > > > > On Thu, May 16, 2013 at 5:04 PM, siddu patil < > [email protected] > > > >wrote: > > > > > > > Yeah i'm able Build other projects successfully and when i'm creating > > the > > > > maven archetype the above issue i'm facing. > > > > > > > > > > > > > > > > > > > > On Thu, May 16, 2013 at 2:34 PM, Anders Hammar <[email protected]> > > > wrote: > > > > > > > > > I'm guessing you're Maven environment isn't set up correctly as > Maven > > > > can't > > > > > download from central. Does it work to build other projects? > > > > > > > > > > /Anders > > > > > On Thu, May 16, 2013 at 5:32 AM, siddu patil < > > > [email protected] > > > > > >wrote: > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > >
