Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Created August 28, 2017 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save barbietunnie/e6e20718d3423e56d4145558ba7c2d8f to your computer and use it in GitHub Desktop.
Save barbietunnie/e6e20718d3423e56d4145558ba7c2d8f 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