maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siddu patil <siddu.automat...@gmail.com>
Subject Re: Maven Build Error
Date Thu, 16 May 2013 15:04:29 GMT
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 <anders@hammar.net> 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 <siddu.automation@gmail.com
> >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
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message