Cannot use local snapshot archetypes w/o -DarchetypeRepository=local
--------------------------------------------------------------------

                 Key: ARCHETYPE-344
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-344
             Project: Maven Archetype
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Jesse Glick


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to