Created
April 18, 2013 22:03
-
-
Save 89465127/5416609 to your computer and use it in GitHub Desktop.
Setting up & running a simple hello world project with Scala and Maven
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first we'll create a new project | |
mvn archetype:generate -DarchetypeGroupId=org.scala-tools.archetypes -DarchetypeArtifactId=scala-archetype-simple -DgroupId=myGroup -DartifactId=myTestProject -Dversion=1.0 -DinteractiveMode=false | |
# then we will package it to create a jar, and populate target/ | |
cd myTestProject | |
optional: rm -rf src/test | |
mvn package | |
#then lets try running it | |
scala -cp target/myTestProject-1.0.jar myGroup.App | |
#we can do a mvn clean to clear out everything in target/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment