[
http://jira.codehaus.org/browse/MGROOVY-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=166878#action_166878
]
Jason Dillon commented on MGROOVY-163:
--------------------------------------
I was able to use the archetype w/o configuring the {{archetypeVersion}}:
{noformat}mvn archetype:generate
-DarchetypeGroupId=org.codehaus.groovy.maven.archetypes
-DarchetypeArtifactId=gmaven-archetype-basic{noformat}
{noformat}
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] Archetype
[org.codehaus.groovy.maven.archetypes:gmaven-archetype-basic:1.0-rc-3] found in
catalog internal
Downloading:
http://repo1.maven.org/maven2/org/codehaus/groovy/maven/archetypes/gmaven-archetype-basic/1.0-rc-3/gmaven-archetype-basic-1.0-rc-3.jar
^CBliss:tmp jason$ ls
Bliss:tmp jason$ mvn archetype:generate
-DarchetypeGroupId=org.codehaus.groovy.maven.archetypes
-DarchetypeArtifactId=gmaven-archetype-basic[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] Archetype
[org.codehaus.groovy.maven.archetypes:gmaven-archetype-basic:1.0-rc-3] found in
catalog internal
Downloading:
http://repo1.maven.org/maven2/org/codehaus/groovy/maven/archetypes/gmaven-archetype-basic/1.0-rc-3/gmaven-archetype-basic-1.0-rc-3.jar
9K downloaded
Define value for groupId: : a
Define value for artifactId: : b
Define value for version: 1.0-SNAPSHOT: :
Define value for package: a: :
Confirm properties configuration:
name: Example Project
groupId: a
artifactId: b
version: 1.0-SNAPSHOT
package: a
Y: :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Tue Feb 24 23:05:28 ICT 2009
[INFO] Final Memory: 8M/14M
[INFO] ------------------------------------------------------------------------
{noformat}
> description how to build groovy project is incomplete
> ------------------------------------------------------
>
> Key: MGROOVY-163
> URL: http://jira.codehaus.org/browse/MGROOVY-163
> Project: GMaven
> Issue Type: Wish
> Components: archetype
> Environment: all
> Reporter: Alexander Bendel
> Assignee: Jason Dillon
> Priority: Minor
> Fix For: 1.0-rc-5
>
>
> The maven command in section [Building Groovy Projects ->
> gmaven-archetype-basic
> Archetype|http://groovy.codehaus.org/GMaven+-+Building+Groovy+Projects#GMaven-BuildingGroovyProjects-{{gmavenarchetypebasic}}Archetype]
> fails if used. It is missing the correct archetype version or a description
> how to install the gmaven archetype in the local archetype catalog.
> The correct command should look like:
> {{mvn archetype:generate
> -DarchetypeGroupId=org.codehaus.groovy.maven.archetypes
> -DarchetypeArtifactId=gmaven-archetype-basic -DarchetypeVersion=1.0-rc-3}}
> or like this::
> {{mvn archetype:generate
> -DarchetypeGroupId=org.codehaus.groovy.maven.archetypes
> -DarchetypeArtifactId=gmaven-archetype-basic -DarchetypeVersion=xyz}} (i.e.
> 1.0-rc-3)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email