Maven – Setting up a Groovy project

To set up a basic Groovy project using Maven (all on the same line):

mvn archetype:generate \
  -DarchetypeGroupId=org.codehaus.groovy.maven.archetypes \
  -DarchetypeArtifactId=gmaven-archetype-basic \
  -DarchetypeVersion=1.0-rc-3

Then fill in the information as for any Maven project.

An Example:

mvn archetype:generate \
  -DarchetypeGroupId=org.codehaus.groovy.maven.archetypes \
  -DarchetypeArtifactId=gmaven-archetype-basic \
  -DarchetypeVersion=1.0-rc-3

Define value for groupId: : net.olioinfo
Define value for artifactId: : configatron-groovy
Define value for version:  1.0-SNAPSHOT: : 0.1
Define value for package:  net.olioinfo: : net.olioinfo.configatron
Confirm properties configuration:
name: Example Project
groupId: net.olioinfo
artifactId: configatron-groovy
version: 0.1
package: net.olioinfo.configatron
 Y: : Y

Double-click on the video player to open on YouTube.

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

WordPress Themes