Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-222

archetype:generate don't use <localRepository> in settings.xml when looking for archetype-catalog.xml

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0-alpha-4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP, Maven 2.0.9, archetype 2.0-alpha4
    • Number of attachments :
      0

      Description

      mvn archetype:generate always looks for ~/.m2/archetype-catalog.xml.

      I've overriden local repository location in my settings.xml :
      <localRepository>D:\Documents\Developpements\.m2\repository</localRepository>

      I would have expected archetype:generate to look after D:\Documents\Developpements\.m2\repository\archetype-catalog.xml, but this is not the case.

        Activity

        Hide
        Adrian added a comment -

        Temporary workaround :
        . I create archetype-catalog.xml using mvn archetype:crawl.
        . Deploy archetype-catalog.xml on http server (http://myserver/archetypes).
        . Launch 'mvn archetype:generate -DarchetypeCatalog=http://myserver/archetypes'

        Show
        Adrian added a comment - Temporary workaround : . I create archetype-catalog.xml using mvn archetype:crawl. . Deploy archetype-catalog.xml on http server ( http://myserver/archetypes ). . Launch 'mvn archetype:generate -DarchetypeCatalog= http://myserver/archetypes '
        Hide
        Raphaël Piéroni added a comment -

        Duplicate of ARCHETYPE-142

        Show
        Raphaël Piéroni added a comment - Duplicate of ARCHETYPE-142
        Hide
        Martin Gainty added a comment -

        confirmed any/all attempts to use localRepository in 2.0.9 failse.g.
        mvn -DlocalRepository=ValidPathForPlugin install
        FAILS to use localRepository

        %M2_HOME%/conf/settings.xml
        <settings>
        <localRepository>F:\Maven-plugin</localRepository>
        FAILS

        I'll check 2.10
        MCG 01/04/09

        Show
        Martin Gainty added a comment - confirmed any/all attempts to use localRepository in 2.0.9 failse.g. mvn -DlocalRepository=ValidPathForPlugin install FAILS to use localRepository %M2_HOME%/conf/settings.xml <settings> <localRepository>F:\Maven-plugin</localRepository> FAILS I'll check 2.10 MCG 01/04/09

          People

          • Assignee:
            Unassigned
            Reporter:
            Adrian
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: