You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jesse Glick (JIRA)" <ji...@codehaus.org> on 2011/08/16 01:35:32 UTC

[jira] Commented: (ARCHETYPE-344) Cannot use local snapshot archetypes w/o -DarchetypeRepository=local

    [ https://jira.codehaus.org/browse/ARCHETYPE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=275998#comment-275998 ] 

Jesse Glick commented on ARCHETYPE-344:
---------------------------------------

Please take a look at ARCHETYPE-366 if you have not done so already; I added a suggested patch.

> Cannot use local snapshot archetypes w/o -DarchetypeRepository=local
> --------------------------------------------------------------------
>
>                 Key: ARCHETYPE-344
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-344
>             Project: Maven Archetype
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Jesse Glick
>            Assignee: Herve Boutemy
>             Fix For: 2.1
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira