You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rice Yeh <ri...@gmail.com> on 2007/12/26 10:36:00 UTC

archetype:create error

Hi,
 I run the command
> mvn archetype:create \
>   -DarchetypeGroupId=org.apache.maven.archetypes \
>   -DgroupId=com.mycompany.app \
>   -DartifactId=my-app

but get the following error

Project ID: org.apache.maven.plugins:maven-archetype-plugin

Reason: Error getting POM for '
org.apache.maven.plugins:maven-archetype-plugin' from the repository: Failed
to resolve artifact, possibly due to a repository list that is not
appropriately equipped for this artifact's metadata.
  org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 for project org.apache.maven.plugins:maven-archetype-plugin

This command should be easy and used to work, what is going wrong? My maven
is 2.0.8.

Regards,
Rice

Re: archetype:create error

Posted by Rice Yeh <ri...@gmail.com>.
It works after change the file maven-metadata-central.xml in my local
repository.

Regards,
Rice

On Dec 26, 2007 6:25 PM, Rice Yeh <ri...@gmail.com> wrote:

> Still not work after trying either your suggestion or passing
> -DarchetypeVersion=1.0-alpha-7.
>
> Regards,
> Rice
>
>
> On Dec 26, 2007 6:01 PM, Olivier Jacob < olivier.jacob@gmail.com> wrote:
>
> > On Dec 26, 2007 10:36 AM, Rice Yeh < riceyeh@gmail.com> wrote:
> >
> > > Hi,
> > >  I run the command
> > > > mvn archetype:create \
> > > >   -DarchetypeGroupId=org.apache.maven.archetypes \
> > > >   -DgroupId= com.mycompany.app \
> > > >   -DartifactId=my-app
> > >
> > > but get the following error
> > >
> > > Project ID: org.apache.maven.plugins:maven-archetype-plugin
> > >
> > > Reason: Error getting POM for '
> > > org.apache.maven.plugins:maven-archetype-plugin' from the repository:
> > > Failed
> > > to resolve artifact, possibly due to a repository list that is not
> > > appropriately equipped for this artifact's metadata.
> > >  org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT
> > >
> > > from the specified remote repositories:
> > >  central (http://repo1.maven.org/maven2 )
> > >  for project org.apache.maven.plugins:maven-archetype-plugin
> > >
> > > This command should be easy and used to work, what is going wrong? My
> > > maven
> > > is 2.0.8.
> > >
> >
> > I think there is still a problem with repositories resolution.
> >
> > Try adding -DremoteRepositories=http://repo1.maven.org/maven2 in your
> > command line
> >
> > If it still does not work, you should adding the archetype version.
> >
> > HTH
> >
> > --
> > Olivier Jacob
> > Consultant - OCTO Technology
> > 50, avenue des Champs Elysées
> > 75008 Paris
> >
>
>

Re: archetype:create error

Posted by Rice Yeh <ri...@gmail.com>.
Still not work after trying either your suggestion or passing
-DarchetypeVersion=1.0-alpha-7.

Regards,
Rice

On Dec 26, 2007 6:01 PM, Olivier Jacob <ol...@gmail.com> wrote:

> On Dec 26, 2007 10:36 AM, Rice Yeh <ri...@gmail.com> wrote:
>
> > Hi,
> >  I run the command
> > > mvn archetype:create \
> > >   -DarchetypeGroupId=org.apache.maven.archetypes \
> > >   -DgroupId=com.mycompany.app \
> > >   -DartifactId=my-app
> >
> > but get the following error
> >
> > Project ID: org.apache.maven.plugins:maven-archetype-plugin
> >
> > Reason: Error getting POM for '
> > org.apache.maven.plugins:maven-archetype-plugin' from the repository:
> > Failed
> > to resolve artifact, possibly due to a repository list that is not
> > appropriately equipped for this artifact's metadata.
> >  org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2)
> >  for project org.apache.maven.plugins:maven-archetype-plugin
> >
> > This command should be easy and used to work, what is going wrong? My
> > maven
> > is 2.0.8.
> >
>
> I think there is still a problem with repositories resolution.
>
> Try adding -DremoteRepositories=http://repo1.maven.org/maven2 in your
> command line
>
> If it still does not work, you should adding the archetype version.
>
> HTH
>
> --
> Olivier Jacob
> Consultant - OCTO Technology
> 50, avenue des Champs Elysées
> 75008 Paris
>

Re: archetype:create error

Posted by Olivier Jacob <ol...@gmail.com>.
On Dec 26, 2007 10:36 AM, Rice Yeh <ri...@gmail.com> wrote:

> Hi,
>  I run the command
> > mvn archetype:create \
> >   -DarchetypeGroupId=org.apache.maven.archetypes \
> >   -DgroupId=com.mycompany.app \
> >   -DartifactId=my-app
>
> but get the following error
>
> Project ID: org.apache.maven.plugins:maven-archetype-plugin
>
> Reason: Error getting POM for '
> org.apache.maven.plugins:maven-archetype-plugin' from the repository:
> Failed
> to resolve artifact, possibly due to a repository list that is not
> appropriately equipped for this artifact's metadata.
>  org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>  for project org.apache.maven.plugins:maven-archetype-plugin
>
> This command should be easy and used to work, what is going wrong? My
> maven
> is 2.0.8.
>

I think there is still a problem with repositories resolution.

Try adding -DremoteRepositories=http://repo1.maven.org/maven2 in your
command line

If it still does not work, you should adding the archetype version.

HTH

-- 
Olivier Jacob
Consultant - OCTO Technology
50, avenue des Champs Elysées
75008 Paris