Skip to content

Instantly share code, notes, and snippets.

@kevinetienne
Created August 27, 2011 11:46
Show Gist options
  • Save kevinetienne/1175290 to your computer and use it in GitHub Desktop.
Save kevinetienne/1175290 to your computer and use it in GitHub Desktop.
use maven and javascript-quickstart archetype
#!/bin/bash
# js-quickstart.sh: creates a js project with maven and Jasmine
usage(){
echo "Usage: $0 com.company.id folder"
echo "Example: $0 com.example.quickstart quickstart"
exit 1
}
# invokes usage if com.company.id and folder not supplied
[[ $# != 2 ]] && usage
# call mvn
mvn archetype:generate \
-DarchetypeArtifactId=javascript-quickstart \
-DarchetypeGroupId=de.akquinet.javascript.archetypes \
-DarchetypeVersion=1.0.0 \
-DgroupId="$1" \
-DartifactId="$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment