The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Building Web Applications with Maven 2
Subject:  problem with the webapp archetype cmd
Date:  2007-07-12 14:35:18
From:  eweibust


I run the webapp archetype cmd and get an error that the artifact needs to be installed into my repo.

mvn archetype:create -DgroupId=com.attainware.maven2example -DartifactId=maven2e
xample_webapp -DarchetypeArtifactId=maven-archetype-webapp

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

GroupId: org.apache.maven.archetypes
ArtifactId: maven-archetype-webapp
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.archetypes -DartifactId=
maven-archetype-webapp \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file


org.apache.maven.archetypes:maven-archetype-webapp:jar:RELEASE

 Feed java.net RSS Feeds