Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing artifact com.oracle:ojdbc6:jar:11.2.0 in pom.xml

Missing artifact com.oracle in pom.xml

I am using Eclipse Luna and working on a maven project. When I add the entry for ojdbc jar in pom.xml , it is giving error in the xml. I can't find any reason for the issue as groupId, artifactId and version are correct.

How can I fix the problem?

like image 597
soumitra chatterjee Avatar asked Aug 04 '14 21:08

soumitra chatterjee


People also ask

How do I get ojdbc6 jar?

You will get those jars when installing the Oracle Client, the ojdbcX. jar files appear in ORACLE_HOME/jdbc/lib. The *. so isn't a java library, and it shouldn't be included in the classpath.

What is ojdbc6 jar?

The "ojdbc6. jar" file constitutes the Oracle thin client-side JDBC driver which is compatible with Java 6 (JDBC level 4.0).


1 Answers

Due to Oracle license restriction, there are no public repositories that provide ojdbc jar.

You need to download it and install in your local repository. Get jar from Oracle and install it in your local maven repository using

mvn install:install-file -Dfile={path/to/your/ojdbc.jar} -DgroupId=com.oracle  -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar 

If you are using ojdbc7, here is the link

like image 192
user3487063 Avatar answered Sep 22 '22 05:09

user3487063