Skip to content

Instantly share code, notes, and snippets.

@gwokudasam
Forked from barbietunnie/install.sh
Created October 16, 2017 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwokudasam/84c593c4b74112cbca05ae19afd878c4 to your computer and use it in GitHub Desktop.
Save gwokudasam/84c593c4b74112cbca05ae19afd878c4 to your computer and use it in GitHub Desktop.
How to add Oracle JDBC driver in your Maven local repository
mvn install:install-file -Dfile={Path/to/your/ojdbc6.jar} -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
<dependencies>
<!-- ojdbc6.jar example -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0</version>
</dependency>
<!-- ojdbc7.jar example -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc7</artifactId>
<version>12.1.0</version>
</dependency>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment