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.
请先登录再写评论。
.
.
.
[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.
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.