- In Eclipse (or similar in IntelliJ IDEA):
1File > New > Project... > Maven > Maven Project
2Next
on the first screen of the New project wizard
3Configure... > Add Remote Catalog...
4 Enter the following URL in theCatalog file
field: http://goo.gl/ln2pF0
Enter Spark in Action (or whatever you like) in theDescription
field
5 After you close the dialog choose the catalog you just created in the Catalog dropdown
- 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