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 2010/11/01 21:04:03 UTC
[jira] Created: (ARCHETYPE-344) Cannot use local snapshot
archetypes w/o -DarchetypeRepository=local
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
Re: [jira] Closed: (ARCHETYPE-344) Cannot use local snapshot archetypes w/o -DarchetypeRepository=local
Posted by Hervé BOUTEMY <he...@free.fr>.
Le lundi 29 novembre 2010, Brett Porter a écrit :
> On 29 November 2010 09:56, Herve Boutemy (JIRA) <ji...@codehaus.org> wrote:
> > [
> >
> > http://jira.codehaus.org/browse/ARCHETYPE-344?page=com.atlassian.jira.plu
> > gin.system.issuetabpanels:all-tabpanel]
> >
> > Herve Boutemy closed ARCHETYPE-344.
> > -----------------------------------
> >
> > Resolution: Fixed
> >
> > Fix Version/s: 2.x
> >
> > Assignee: Herve Boutemy
> >
> > fixed in r1039970
>
> I renamed this version from 2.x to 2.1 in JIRA, since it seems closer to
> how it's being used...
yes, thank you
Hervé
>
> - Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [jira] Closed: (ARCHETYPE-344) Cannot use local snapshot
archetypes w/o -DarchetypeRepository=local
Posted by Brett Porter <br...@apache.org>.
On 29 November 2010 09:56, Herve Boutemy (JIRA) <ji...@codehaus.org> wrote:
>
> [
> http://jira.codehaus.org/browse/ARCHETYPE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Herve Boutemy closed ARCHETYPE-344.
> -----------------------------------
>
> Resolution: Fixed
> Fix Version/s: 2.x
> Assignee: Herve Boutemy
>
> fixed in r1039970
>
I renamed this version from 2.x to 2.1 in JIRA, since it seems closer to how
it's being used...
- Brett
>
> > 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
> > Assignee: Herve Boutemy
> > Fix For: 2.x
> >
> >
> > Build
> https://svn.codehaus.org/mojo/trunk/mojo/mojo-archetypes/netbeans-platform-app-archetypeand 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
>
>
>
--
Brett Porter
http://brettporter.wordpress.com/
[jira] Commented: (ARCHETYPE-344) Cannot use local snapshot
archetypes w/o -DarchetypeRepository=local
Posted by "Jesse Glick (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Issue Comment Edited: (ARCHETYPE-344) Cannot use local
snapshot archetypes w/o -DarchetypeRepository=local
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245582#comment-245582 ]
Herve Boutemy edited comment on ARCHETYPE-344 at 8/16/11 3:10 PM:
------------------------------------------------------------------
fixed in [r1039970|http://svn.apache.org/viewvc?rev=1039970&view=rev]
was (Author: hboutemy):
fixed in r1039970
> 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
[jira] Closed: (ARCHETYPE-344) Cannot use local snapshot archetypes
w/o -DarchetypeRepository=local
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy closed ARCHETYPE-344.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.x
Assignee: Herve Boutemy
fixed in r1039970
> 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
> Assignee: Herve Boutemy
> Fix For: 2.x
>
>
> 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
[jira] Commented: (ARCHETYPE-344) Cannot use local snapshot
archetypes w/o -DarchetypeRepository=local
Posted by "Jesse Glick (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242448#action_242448 ]
Jesse Glick commented on ARCHETYPE-344:
---------------------------------------
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.
{noformat}
mvn ... -DarchetypeVersion=1.6 ...
...
Archetype repository missing. Using the one from [org.codehaus.mojo.archetypes:nbm-archetype:1.5] found in catalog remote
{noformat}
and uses the wrong archetype.
> 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