Commits

Anonymous committed a41e8ea

MVN: add mvn-get function to easily download a maven artficat

  • Participants
  • Parent commits b102d5d

Comments (0)

Files changed (1)

   mvn archetype:create -DgroupId=$1 -DartifactId=$2 -DarchetypeArtifactId=maven-archetype-archetype
 }
 
+function mvn-get {
+  if [ $# -ne 3 ]; then
+    echo "Usage:       mvn-get GROUPID ARRTIFACTID VERSION"
+    echo ""
+    echo "    example: mvn-get org.scala-lang scala-library 2.9.1"
+    echo ""
+    return
+  fi
+  mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get \
+        -Dartifact=$1:$2:$3
+}