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 <[EMAIL PROTECTED]> wrote: > On Dec 26, 2007 10:36 AM, Rice Yeh <[EMAIL PROTECTED]> 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 >
