Managing Maven archetypes

So there are a number of archetypes I know are out there and I want to add them to the list of possible archetypes one might start a project with.  How do I go about doing this and how to I remove the erroneous entry I've already made?
Do they really have to be entered one by one or can one just add a repository or something?


Jim C.

2 comments
Comment actions Permalink
"C:\Program Files\Java\jdk1.6.0_26\bin\java" "-Dclassworlds.conf=C:\Program Files\apache-maven-3.0.3\bin\m2.conf" "-Dmaven.home=C:\Program Files\apache-maven-3.0.3" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\apache-maven-3.0.3\boot\plexus-classworlds-2.4.jar"
.
.
.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
.
.
.
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[WARNING] Archetype not found in any catalog. Falling back to central repository (http://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
Downloading: http://repo1.maven.org/maven2/cxf-archetypes/cxf-archetypes/2.5.2/cxf-archetypes-2.5.2.jar
Downloading: http://repo1.maven.org/maven2/cxf-archetypes/cxf-archetypes/2.5.2/cxf-archetypes-2.5.2.jar



Hmmm.... browse to the above and get 404.  GUI speaking, the target archetype is here, BTW: http://mvnrepository.com/artifact/org.apache.cxf/cxf-archetypes/2.5.2

Pom is here:
http://repo1.maven.org/maven2/org/apache/cxf/cxf-archetypes/2.5.2/cxf-archetypes-2.5.2.pom

Hmmm... I think the UI is expecting something other than what I entered to build it's URL with.
0
Comment actions Permalink

Well, executing it from the command line seems to work following instructions from here:

http://cxf.apache.org/docs/jax-rs-maven-plugins.html

I think part of the problem is that it requires interaction which IMHO was a less than ideal move on the part of the developers. Will have to modify.

Jim C.

0

Please sign in to leave a comment.