Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple script to install Oracle proprietary JDBC driver into local maven repository
#!/bin/bash
VERSION=19.8.0.0
JARFILE=ojdbc8-${VERSION}.jar
ARTIFACTID=coseos-oracle-jdbc8
GROUPID=com.oracle
MVN=$(which mvn)
function install {
${MVN} install:install-file \
-Dfile=${JARFILE} \
-DgroupId=${GROUPID} \
-DartifactId=${ARTIFACTID} \
-Dversion=${VERSION} \
-Dpackaging=jar
}
if [ -f "$MVN"]; then
echo ${MVN}
fi
if [ -f "$JARFILE"]; then
install()
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment