Cannot create a maven project using maven-archetype-webapp

I've tried to create a new project (new maven module) using web archetype, and I got the following exception:

/opt/java/32/jdk1.7.0_02/bin/java -Dclassworlds.conf=/usr/share/maven2/bin/m2.conf -Dmaven.home=/usr/share/maven2 -Dfile.encoding=UTF-8 -classpath /usr/share/maven2/boot/classworlds.jar org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast --strict-checksums --update-snapshots -DinteractiveMode=false -DgroupId=ro.jtonic.examples -DartifactId=selenium -Dversion=1.0.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
+ Enabling strict checksum verification on all artifact downloads.
[INFO] Scanning for projects...
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Batch mode
[INFO] Archetype repository missing. Using the one from [org.apache.maven.archetypes:maven-archetype-webapp:1.0] found in catalog remote
[INFO] artifact org.apache.maven.archetypes:maven-archetype-webapp: checking for updates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/1.0/maven-archetype-webapp-1.0.jar
3K downloaded  (maven-archetype-webapp-1.0.jar)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/1.0/maven-archetype-webapp-1.0.pom
533b downloaded  (maven-archetype-webapp-1.0.pom)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-webapp:RELEASE)
The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-webapp:RELEASE)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15 seconds
[INFO] Finished at: Sun Sep 23 18:31:27 EEST 2012
[INFO] Final Memory: 25M/144M
[INFO] ------------------------------------------------------------------------
[ERROR] Maven execution terminated abnormally (exit code 1)




Am I doing smth wrong?
Any help is highly appreciated.

Regards
1 comment
Comment actions Permalink

I found that in the last step of the project creation dialog, setting the archetypeVersion to 1.0 resolved this issue.
I deduced this by inspecting the archetype pom. Hope this helps.

0

Please sign in to leave a comment.