You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Siddu Patil <si...@gmail.com> on 2013/09/25 19:01:06 UTC

Re: Maven Build Error

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 <an...@hammar.net> 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 <siddu.automation@gmail.com
> >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 <an...@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
> > > >
> > >
> >
>

Re: Maven Build Error

Posted by Wayne Fay <wa...@gmail.com>.
> Wayne,Now the problem got resolved when i googled the things from the below
> link it suggested org/codehaus/groovy directory in the local repository
> maven cache folder needs to be deleted when i've done it works fine.

Good to hear that you solved it.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Build Error

Posted by Siddu Patil <si...@gmail.com>.
Wayne,Now the problem got resolved when i googled the things from the below
link it suggested org/codehaus/groovy directory in the local repository
maven cache folder needs to be deleted when i've done it works fine.

https://netbeans.org/bugzilla/show_bug.cgi?id=210430

Thanks,
Siddu


On Thu, Sep 26, 2013 at 3:25 PM, Wayne Fay <wa...@gmail.com> wrote:

> > I agree that it's my local problem.Can you please guide me i'm trying to
> > set up in my local machine(laptop not corporate one) and i've no anti
> virus
> > installed.
>
> Most likely you are behind a proxy and don't even realize it. I'm not
> certain if Maven stored the jar file in ~/.m2 but you should try to
> find ant-1.8.1.jar and open it with Notepad or something to see if
> perhaps it is HTML that can help you sort out the troubles. You may
> also be hitting a mirror which is misconfigured.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven Build Error

Posted by Wayne Fay <wa...@gmail.com>.
> I agree that it's my local problem.Can you please guide me i'm trying to
> set up in my local machine(laptop not corporate one) and i've no anti virus
> installed.

Most likely you are behind a proxy and don't even realize it. I'm not
certain if Maven stored the jar file in ~/.m2 but you should try to
find ant-1.8.1.jar and open it with Notepad or something to see if
perhaps it is HTML that can help you sort out the troubles. You may
also be hitting a mirror which is misconfigured.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Build Error

Posted by Siddu Patil <si...@gmail.com>.
I agree that it's my local problem.Can you please guide me i'm trying to
set up in my local machine(laptop not corporate one) and i've no anti virus
installed.

Can you please provide me solution here.

Thanks in advance!!


On Thu, Sep 26, 2013 at 1:15 PM, Wayne Fay <wa...@gmail.com> wrote:

> > 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]
>
> This is your problem. For whatever reason, Maven cannot successfully
> download the ant-1.8.1.jar file from Central. Most likely you have a
> misconfiguration or special network device in your network (proxy,
> cache, antivirus, etc) that is causing problems. Workaround or "solve"
> this problem and try again.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Maven Build Error

Posted by Wayne Fay <wa...@gmail.com>.
> 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]

This is your problem. For whatever reason, Maven cannot successfully
download the ant-1.8.1.jar file from Central. Most likely you have a
misconfiguration or special network device in your network (proxy,
cache, antivirus, etc) that is causing problems. Workaround or "solve"
this problem and try again.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Build Error

Posted by Siddu Patil <si...@gmail.com>.
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 <an...@hammar.net> wrote:

> Did you try what I suggested?
>
> /Anders (mobile)
> Den 25 sep 2013 19:01 skrev "Siddu Patil" <si...@gmail.com>:
>
> > 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 <an...@hammar.net>
> 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 <
> siddu.automation@gmail.com
> > > >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 <an...@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
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: Maven Build Error

Posted by Anders Hammar <an...@hammar.net>.
Did you try what I suggested?

/Anders (mobile)
Den 25 sep 2013 19:01 skrev "Siddu Patil" <si...@gmail.com>:

> 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 <an...@hammar.net> 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 <siddu.automation@gmail.com
> > >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 <an...@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
> > > > >
> > > >
> > >
> >
>

Re: Maven Build Error

Posted by Siddu Patil <si...@gmail.com>.
Hi Everyone,

Can anyone guide me here to resolve the above issue.

Thanks,
Siddu


On Wed, Sep 25, 2013 at 10:31 PM, Siddu Patil <si...@gmail.com>wrote:

> 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 <an...@hammar.net> 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 <siddu.automation@gmail.com
>> >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 <an...@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
>> > > >
>> > >
>> >
>>
>
>