GMaven (OLD... DO NOT USE)
  1. GMaven (OLD... DO NOT USE)
  2. MGROOVY-163

description how to build groovy project is incomplete

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 1.0-rc-5
    • Component/s: archetype
    • Labels:
      None
    • Environment:
      all
    • Patch Submitted:
      Yes
    • Number of attachments :
      0

      Description

      The maven command in section Building Groovy Projects -> gmaven-archetype-basic 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)

        Activity

        Hide
        Jason Dillon added a comment - - edited

        I was able to use the archetype w/o configuring the archetypeVersion:

        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] ------------------------------------------------------------------------
        
        Show
        Jason Dillon added a comment - - edited I was able to use the archetype w/o configuring the archetypeVersion : 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] ------------------------------------------------------------------------

          People

          • Assignee:
            Jason Dillon
            Reporter:
            Alexander Bendel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: