Skip to content

Instantly share code, notes, and snippets.

@dmitry-zaitsev
dmitry-zaitsev / jb.sh
Created November 30, 2015 08:53 — forked from rjeschke/jb.sh
jnibuild bash script
#!/bin/bash
artifact=~/.m2/repository/com/github/rjeschke/jnibuild/0.1-SNAPSHOT/jnibuild-0.1-SNAPSHOT.jar
if [ ! -f $artifact ]
then
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get -DrepoUrl=http://maven.renejeschke.de/snapshots/ -Dartifact=com.github.rjeschke:jnibuild:0.1-SNAPSHOT
fi
java -cp $artifact com.github.rjeschke.jnibuild.Build $@