Skip to content

A simple maven archetype for generating a new Spark 1.6.1 project with Scala 2.10.4

License

Notifications You must be signed in to change notification settings

aylwynlake/scala-archetype-sparkinaction

Repository files navigation

Archetype to scaffold projects for Spark in Action book

  • In Eclipse (or similar in IntelliJ IDEA):
    1 File > New > Project... > Maven > Maven Project
    2 Next on the first screen of the New project wizard
    3 Configure... > Add Remote Catalog...
    4 Enter the following URL in the Catalog file field: http://goo.gl/ln2pF0
    Enter Spark in Action (or whatever you like) in the Description field
    5 After you close the dialog choose the catalog you just created in the Catalog dropdown
http://goo.gl/ln2pF0 is just a shorthand for https://github.com/spark-in-action/scala-archetype-sparkinaction/raw/master/archetype-catalog.xml
  • From the terminal (interactive mode): Select the only option (1) and answer subsequent questions:
mvn archetype:generate -DarchetypeCatalog=http://goo.gl/ln2pF0
  • Batch mode (change the values in the last line):
mvn archetype:generate -B \
    -DarchetypeCatalog=http://goo.gl/ln2pF0 \
    -DarchetypeGroupId=org.sparkinaction \
    -DarchetypeArtifactId=scala-archetype-sparkinaction \
    -DarchetypeVersion=0.1 \
    -DgroupId=com.company -DartifactId=project -Dversion=0.1-SNAPSHOT -Dpackage=com.company
  • Example usage (run mvn scala:help for full list of commands):
mvn scala:compile
mvn scala:run -DmainClass=com.company.App

About

A simple maven archetype for generating a new Spark 1.6.1 project with Scala 2.10.4

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%