To import a Maven Groovy project into Intellij Idea 9:
- File > New Project
- Select ‘Import project from external model’. Click [Next]
- Select ‘Maven’. Click [Next]
- In the root directory window, navigate to the top-level directory of the Maven-Groovy project. Click [Next]
- Accept default offered for ‘Select Maven projects to import’. Click [Next]
- Accept default offered for project name. Click [Finish]
- All done!
Double-click on the video player to open on YouTube.
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.