Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Component/s: None
-
Labels:None
-
Number of attachments :
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.
Issue Links
- is duplicated by
-
ARCHETYPE-351
Maven central is not used for archetype repository anymore
-
- is related to
-
ARCHETYPE-366
Maven mirror consulted after, rather than instead of, archetypeRepository URL
-
Similarly, if you ask to use an archetype available in Central but newer than the one in your local repo, the plugin prints e.g.
and uses the wrong archetype.