Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-1
    • Fix Version/s: 2.0-alpha-3
    • Component/s: Plugin
    • Labels:
      None

      Description

      I try to create a custom archetype-catalog.xml and use it
      "mvn archetype:create -DarchetypeCatalog=file://tmp/archetype-catalog.xml"

      but the displayed list is empty, (you could try with the https://svn.apache.org/repos/asf/maven/archetype/tags/maven-archetype-2.0-alpha-1/archetype-common/src/main/resources/archetype-catalog.xml)

      And if I copy on a http server :
      "mvn archetype:create -DarchetypeCatalog=http://scala-tools.org/"
      Then I got an exception
      java.lang.ClassCastException: org.apache.maven.archetype.catalog.ArchetypeCatalog
      at org.apache.maven.archetype.ui.DefaultArchetypeSelectionQueryer.selectArchetype(DefaultArchetypeSelectionQueryer.java:97)
      at org.apache.maven.archetype.ui.DefaultArchetypeSelector.selectArchetype(DefaultArchetypeSelector.java:179)
      at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:165)

      It very critical, because our user can't create new project from our archetypes.

      (workaround : "mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create ..."

        Activity

        David Bernard created issue -
        Raphaël Luta made changes -
        Field Original Value New Value
        Fix Version/s 2.0-alpha-2 [ 13771 ]
        Brian Fox made changes -
        Fix Version/s 2.0-alpha-3 [ 14088 ]
        Fix Version/s 2.0-alpha-2 [ 13771 ]
        Raphaël Luta made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:05:55 UTC 2015 [ 1428224755734 ]
        Mark Thomas made changes -
        Workflow jira [ 12716593 ] Default workflow, editable Closed status [ 12748259 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:17:37 UTC 2015 [ 1428272257260 ]
        Mark Thomas made changes -
        Workflow jira [ 12953904 ] Default workflow, editable Closed status [ 12991039 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            David Bernard
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development