Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-144

Fails "archetype:create" when specify archetypeVersion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha-2
    • 2.0-alpha-3
    • None
    • None

    Description

      We uses custom archetype and remote repository.
      http://maven.seasar.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar

      no specify "archetypeVersion" -> build successful

      mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
      -DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
      -DarchetypeArtifactId=cubby-archetype
      

      specify "archetypeVersion" -> build error

      mvn archetype:create -DremoteRepositories=http://maven.seasar.org/maven2/ \
      -DgroupId=com.example.foo -DartifactId=barapp -DarchetypeGroupId=org.seasar.cubby \
      -DarchetypeArtifactId=cubby-archetype -DarchetypeVersion=1.0.0
      

      and part of log

      [INFO] [archetype:create]
      [INFO] Defaulting package to group ID: com.example.foo
      [INFO] We are using command line specified remote repositories: http://maven.seasar.org/maven2/
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error creating from archetype
      
      Embedded error: OldArchetype does not exist.
      http://repo1.maven.org/maven2/org/seasar/cubby/cubby-archetype/1.0.0/cubby-archetype-1.0.0.jar
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ expects "http://maven.seasar.org/maven2/" !
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2 seconds
      [INFO] Finished at: Mon Mar 03 21:16:46 JST 2008
      [INFO] Final Memory: 8M/79M
      [INFO] ------------------------------------------------------------------------
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              baba@nulab.co.jp BABA,Yasuyuki
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: