[
https://issues.apache.org/jira/browse/ARCHETYPE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971419#comment-15971419
]
Vitalij Zadneprovskij commented on ARCHETYPE-479:
-------------------------------------------------
The correct way to create a brooklyn project from an archetype is:
```mvn archetype:generate -DarchetypeGroupId=**org.apache.brooklyn**
-DarchetypeArtifactId=brooklyn-archetype-quickstart
-DarchetypeVersion=**0.9.0** -DgroupId=com.acme -DartifactId=autobrick
-Dversion=0.1.0-SNAPSHOT -DpackageName=com.acme.autobrick
-DinteractiveMode=false```
The correct archetype group id is org.apache.brooklyn and the correct archetype
version is 0.9.0
More info here: https://brooklyn.apache.org/v/0.9.0/java/archetype.html
> CREATING FROM A MAVEN ARCHETYPE failure
> ---------------------------------------
>
> Key: ARCHETYPE-479
> URL: https://issues.apache.org/jira/browse/ARCHETYPE-479
> Project: Maven Archetype
> Issue Type: Question
> Components: Archetypes
> Affects Versions: 2.3
> Environment: ubuntu12.04
> Reporter: jiangchuan
>
> When I CREATING FROM A MAVEN ARCHETYPE using the command:
> mvn archetype:generate -DarchetypeGroupId=io.brooklyn
> -DarchetypeArtifactId=brooklyn-archetype-quickstart
> -DarchetypeVersion=0.7.0-M2-incubating -DgroupId=com.acme
> -DartifactId=autobrick -Dversion=0.1.0-SNAPSHOT
> -DpackageName=com.acme.autobrick -DinteractiveMode=false
> The failure happens:
> root@ubuntu_130:/home/jiangchuan/test# mvn archetype:generate
> -DarchetypeGroupId=io.brooklyn
> -DarchetypeArtifactId=brooklyn-archetype-quickstart
> -DarchetypeVersion=0.7.0-M2-incubating -DgroupId=com.acme
> -DartifactId=autobrick -Dversion=0.1.0-SNAPSHOT
> -DpackageName=com.acme.autobrick -DinteractiveMode=false
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom
> >>>
> [INFO]
> [INFO] <<< maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom
> <<<
> [INFO]
> [INFO] --- maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom
> ---
> [INFO] Generating project in Batch mode
> [INFO] Archetype repository not defined. Using the one from
> [io.brooklyn:brooklyn-archetype-quickstart:0.7.0-M1] found in catalog remote
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 12.476s
> [INFO] Finished at: Mon Apr 20 16:21:55 CST 2015
> [INFO] Final Memory: 9M/23M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on
> project standalone-pom: The desired archetype does not exist
> (io.brooklyn:brooklyn-archetype-quickstart:0.7.0-M2-incubating) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> My maven version is maven 3.
> Thanks for any reply.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)