The archetypes (such as maven-archetype-quickstart) are now in group
org.apache.maven.archetypes (with an 's').

From mvn archetype:create, I get:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.archetype
ArtifactId: maven-archetype-quickstart
Version: RELEASE

Reason: Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
   mvn install:install-file -DgroupId=org.apache.maven.archetype -DartifactId=m
aven-archetype-quickstart \
       -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file

 org.apache.maven.archetype:maven-archetype-quickstart:jar:RELEASE

I have all of archetype build from source locally.  To get it to work,
I have to add
  -DgroupId=org.apache.maven.archetypes
to the mvn archetype:create command line.

The archetype plugin expects them to be in group
org.apache.maven.archetype (no 's').

To reproduce:
rm -rf $M2_REPO/org/apache/maven/archetype
rm -rf $M2_REPO/org/apache/maven/archetypes
cd ~/svn/maven/archetype; mvn install
cd /temp
mvn archetype:create -DgroupId=com.example -DartifactId=myapp

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to