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 <[email protected]>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 <[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
>> > > >
>> > >
>> >
>>
>
>

Reply via email to