Skip to content

Instantly share code, notes, and snippets.

@jcromartie
Created December 7, 2010 14:31
Show Gist options
  • Save jcromartie/731839 to your computer and use it in GitHub Desktop.
Save jcromartie/731839 to your computer and use it in GitHub Desktop.
TEMPDIR=`mktemp -d /tmp/install-sqljdbc.XXX`
cd "$TEMPDIR"
URL="http://download.microsoft.com/download/D/6/A/D6A241AC-433E-4CD2-A1CE-50177E8428F0/1033/sqljdbc_3.0.1301.101_enu.tar.gz"
TARBALL=install.tar.gz
curl -o $TARBALL "$URL"
tar -xzf $TARBALL
mvn install:install-file -Dfile=`find $TEMPDIR -name sqljdbc4.jar` -DgroupId=com.microsoft -DartifactId=sqljdbc4 -Dversion=3.0 -Dpackaging=jar
rm -rf "$TEMPDIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment