#Maven install ojdbc6 driver#
Oracle is now exposing a maven repository at Īccording to the comments in the blog post the ojdbc driver should be available at the following coordinates: Now you only have to execute mvn clean once and the oracle lib is installed in your local maven repository. Now you can use the maven installer plugin. Oracle JDBC Driver compatible with JDK10 and JDK11 ĭownload the jar and place it in your project src/lib. Oracle JDBC Driver compatible with JDK8, JDK9, and JDK11 Oracle JDBC Driver compatible with JDK6, JDK7, and JDK8 See Anthony Accioly answer for more information.
#Maven install ojdbc6 drivers#
Oracle is now publishing the drivers under the group id. įor Gradle users, use: implementation ':ojdbc10:19.3.0.0' I noticed Spring Boot is now using the Oracle JDBC Driver from Maven Central. The Oracle Maven Repository requires a user registration. The Oracle JDBC Driver is now available in the Oracle Maven Repository (not in Central). To include the files in the war file add the following to your pom It doesn’t include the ojdbc6.jar file in the target WAR file.ġ) Create a directory called “lib” in the root of your project.Ģ) Copy the ojdbc6.jar file there (whatever the jar is called.)ģ) Create a dependency that looks something like this: It does NOT appear to work for building the WAR file, however. UPDATE: This solution works for me when I run Hibernate Tools. And it eliminates the need for the other developers on the team (or the guy setting up the build server) to put the jar in their local repositories. It’s probably not the RIGHT way to do it, but it does work. What I did instead was to include the jar in my project (blech) and then create a “system” dependency for it that indicates the path to the jar. If your team has a local Maven repository this guide might be helpful to upload the JAR there.įor whatever reason, I could not get any of the above solutions to work. The last parameter for generating a POM will save you from pom.xml warnings Dversion=10.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc.jar -DgeneratePom=true Once you’ve downloaded the JAR just add it to your computer repository with (note I pulled the groupId, artifactId and version from the POM): mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 \ …and the URL to download the file which in this case is. Just check it out, it contains the vendor’s preferred Maven info: com.oracle
#Maven install ojdbc6 license#
Some JARs that can’t be added due to license reasons have a pom entry in the Maven Central repo. How do I add it so that Maven will use it? If you happen to find a public repository containing the JAR you can be sure that is illegal.
This happens with many dependencies but is not Maven’s fault. Unfortunately due the binary license there is no public repository with the Oracle Driver JAR. How do I find a repository (if any) that contains this artifact?