Skip to content

Instantly share code, notes, and snippets.

@89465127
Created April 18, 2013 22:03
Show Gist options
  • Save 89465127/5416609 to your computer and use it in GitHub Desktop.
Save 89465127/5416609 to your computer and use it in GitHub Desktop.
Setting up & running a simple hello world project with Scala and Maven
# 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