[
https://jira.codehaus.org/browse/ARCHETYPE-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed ARCHETYPE-309.
------------------------------------
Resolution: Won't Fix
The {{archetype:create}} goal has been deprecated, so closing this issue as
{{Won't fix}}
> Parameter 'version' not correctly recognized
> --------------------------------------------
>
> Key: ARCHETYPE-309
> URL: https://jira.codehaus.org/browse/ARCHETYPE-309
> Project: Maven Archetype
> Issue Type: Bug
> Reporter: Vitaly Berdinskikh
>
> Parameter 'version' used instead of 'archetypeVersion' or
> Call:
> mvn archetype:create -DgroupId=****** -DartifactId=*****
> -Dversion=0.1.0-alpha-1 -DpackageName=****
> Error log:
> ===========================================================
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO] task-segment: [archetype:create] (aggregator-style)
> [INFO]
> ----------------------------------------------------------------------------
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/0.1.0-alpha-1/maven-archetype-core-0.1.0-alpha-1.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/0.1.0-alpha-1/maven-archetype-creator-0.1.0-alpha-1.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/0.1.0-alpha-1/maven-archetype-creator-0.1.0-alpha-1.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/0.1.0-alpha-1/maven-archetype-core-0.1.0-alpha-1.jar
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> Missing:
> ----------
> 1) org.apache.maven.archetype:maven-archetype-creator:jar:0.1.0-alpha-1
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.maven.archetype
> -DartifactId=maven-archetype-creator \
> -Dversion=0.1.0-alpha-1 -Dpackaging=jar -Dfile=/path/to/file
> Path to dependency:
> 1)
> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-4
> 2) org.apache.maven.archetype:maven-archetype-creator:jar:0.1.0-alpha-1
> 2) org.apache.maven.archetype:maven-archetype-core:jar:0.1.0-alpha-1
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.maven.archetype
> -DartifactId=maven-archetype-core \
> -Dversion=0.1.0-alpha-1 -Dpackaging=jar -Dfile=/path/to/file
> Path to dependency:
> 1)
> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-4
> 2) org.apache.maven.archetype:maven-archetype-core:jar:0.1.0-alpha-1
> ----------
> 2 required artifacts are missing.
> for artifact:
> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-4
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> apache.snapshots (http://svn.apache.org/maven-snapshot-repository)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 8 seconds
> [INFO] Finished at: Thu Jun 08 11:42:24 EEST 2006
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
> ===========================================================
> See plugin parameters description for goal 'create'
> http://maven.apache.org/plugins/maven-archetype-plugin/create-mojo.html
> ...
> version String ${version} 1.0-SNAPSHOT
> ...
> Also if call with out parameter 'version'? project succesfully created with
> version number '1.0-SNAPSHOT'.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira