You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Wendy Smoak <ws...@gmail.com> on 2006/12/26 23:18:23 UTC
Wrong groupId for the archetypes?
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Wrong groupId for the archetypes?
Posted by Wendy Smoak <ws...@gmail.com>.
On 12/26/06, Wendy Smoak <ws...@gmail.com> wrote:
> 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.
Should be: -DarchetypeGroupId=org.apache.maven.archetypes
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org