You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2010/08/12 22:45:32 UTC

[jira] Closed: (ARCHETYPE-300) breaking change in 2.0-alpha-5: no longer support remoteRepository

     [ http://jira.codehaus.org/browse/ARCHETYPE-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed ARCHETYPE-300.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Herve Boutemy

I didn't know this remoteRepositories parameter, then I checked back in module history: this attribute was here [in 1.0-alpha-*|http://svn.apache.org/viewvc/maven/archetype/tags/maven-archetype-1.0-alpha-7/maven-archetype-plugin/src/main/java/org/apache/maven/plugin/archetype/MavenArchetypeMojo.java] and [disappeared in 2.0-beta-1|http://svn.apache.org/viewvc/maven/archetype/tags/maven-archetype-2.0-alpha-1/archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java?revision=697931&view=markup] in february 2008

your problem has nothing to do with the fresh 2.0-alpha-5 release: I don't know why you have users that today still resolve 1.0-alpha-7 instead of 2.0-alpha-*, and even when they resolve 2.0, the fact that this parameter isn't used shouldn't cause any harm since the archetype mentionned in the mailing list is defined in internal catalog

I really don't know what happened to your users lately that wasn't happening to them for 2 years.
I tested today and everything is ok

please open another Jira issue if something is wrong

> breaking change in 2.0-alpha-5: no longer support remoteRepository
> ------------------------------------------------------------------
>
>                 Key: ARCHETYPE-300
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-300
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 2.0-alpha-1, 2.0-alpha-5
>            Reporter: David Bernard
>            Assignee: Herve Boutemy
>            Priority: Blocker
>
> Since 2.0-alpha-5 property "remoteRepositories" is replace by "archetypeRepository". I agree it's a better name, but it introduce BREAKING change for the command like
> {code}
> mvn archetype:generate -U \
> -DarchetypeGroupId=net.liftweb \
> -DarchetypeArtifactId=lift-archetype-basic \
> -DarchetypeVersion=1.0 \
> -DremoteRepositories=http://scala-tools.org/repo-releases \
> -DgroupId=xxx \
> -DartifactId=xxx \
> -Dversion=xxx
> {code}
> And this kind of command is provide in lot of framework documentation (lift, wicket,...). Break it raise trouble for new user (and other).
> Please provide a update (to be backward compatible) ASAP.

-- 
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