Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
-
None
Description
Build https://svn.codehaus.org/mojo/trunk/mojo/mojo-archetypes/netbeans-platform-app-archetype and then:
mvn -B -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=netbeans-platform-app-archetype -DarchetypeVersion=1.7-SNAPSHOT -DgroupId=test -DartifactId=whatever -Dversion=1.0-SNAPSHOT org.apache.maven.plugins:maven-archetype-plugin:2.0:generate
This will print a warning:
[INFO] Archetype repository missing. Using the one from [org.codehaus.mojo.archetypes:netbeans-platform-app-archetype:1.6] found in catalog remote
and then proceed to use the 1.6 archetype, even though 1.7-SNAPSHOT was explicitly requested, and is available in the local repository.
When using 2.0-alpha-5 the same command works as expected, so this is a regression. Breaks usage of local archetype catalog from NB IDE.
Workaround is to pass -DarchetypeRepository=local.
Attachments
Issue Links
- is duplicated by
-
ARCHETYPE-351 Maven central is not used for archetype repository anymore
- Closed
- is related to
-
ARCHETYPE-366 Maven mirror consulted after, rather than instead of, archetypeRepository URL
- Closed