I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14. In MVNrepository site the dependency to put in the POM is:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.3.0</version>
</dependency>
of course this does't work as it is not in the central repository used by maven. 2 questions:
How do I find a repository (if any) that contains this artifact?
How do I add it so that Maven will use it?
Unfortunately due the binary license there is no public repository with the Oracle Driver JAR. This happens with many dependencies but is not Maven's fault. If you happen to find a public repository containing the JAR you can be sure that is illegal.
How do I add it so that Maven will use it?
Some JARs that can't be added due to license reasons have a pom entry in the Maven Central repo. Just check it out, it contains the vendor's preferred Maven info:
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.3.0</version>
...and the URL to download the file which in this case is http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html.
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 \
-Dversion=10.2.0.3.0 -Dpackaging=jar -Dfile=ojdbc.jar -DgeneratePom=true
The last parameter for generating a POM will save you from pom.xml warnings
If your team has a local Maven repository this guide might be helpful to upload the JAR there.
From:
http://stackoverflow.com/questions/1074869/find-oracle-jdbc-driver-in-maven-repository
分享到:
相关推荐
由于Oracle授权问题,Maven3不提供Oracle JDBC driver,为了在Maven项目中应用Oracle JDBC driver,必须手动添加到本地仓库。 一.下载Oracle JDBC Driver 1.通过Oracle官方网站下载相应版本:...
达梦数据库驱动包
sqljdbc4的maven包,可解压直接手动导入;sqljdbc4的maven包,可解压直接手动导入
maven仓库所需要的jar包,包含完整的内容,可以去看一下简绍(https://blog.csdn.net/Fly_tom/article/details/81874197),由于csdn网站上传文件的限制,这个只是一部分,另一部分:...
Maven框架,本地jar资源仓,中央仓下载jar资源 有时在你的构建过程中,需要将第三方jar包添加到本地仓库中,因为它并存在于像Maven中央仓库或其它的公共仓库中。为了让Maven能够正确获取到jar包,第三方jar包必须...
解决maven官方库中没有oracle jdbc驱动的问题 刚研究maven不久,遇到一个比较头疼的问题,在工程里怎么下都下载不了oracle的jdbc驱动。 刚还以为是网络问题,重新下载了很多次,都提示maven库里找不到相关jar文件。...
Maven配置 <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc14 <version>10.2.0.4.0 安装到仓库 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2....
Oracle JDBC驱动包有多个版本,选错ojdbc驱动,会导致各种莫名其妙的错误,每个ojdbc版本对应的Oracel版本、JDK版本都不一样,压缩包里面有详细说明。
达梦7数据库(DM7)JDBC驱动包,Dm7JdbcDriver17.jar。 springboot的pom文件中添加即可,好用
Cassandra jdbc driver,支持Cassandra2.x,3.x, 支持标准的jdbc规范,兼容Cassandra的cql语法。
repository
spark 1.5.1 maven repository
eclipse中maven 下载不到oracle数据库驱动 ojdbc5 ojdbc6 需要我们手动将驱动安装到本地仓库 https://blog.csdn.net/az44yao/article/details/87773714 参考地址: ...
Java idea maven repository,personal repository,yu-dao
Dm7JdbcDriver17.jar Dm7JdbcDriver16.jar Dm7JdbcDriver15.jar DmDialect-for-hibernate2.0.jar DmDialect-for-hibernate2.1.jar DmDialect-for-hibernate3.0.jar DmDialect-for-hibernate3.1.jar DmDialect-for-...
maven-repository-metadata-3.0.jar
Hadoop Maven repository本地库 下载后直接解压就能用。。。。。
springboot maven引用oracle jdbc。 亲测可用
eclipse中maven 下载不到oracle数据库驱动 ojdbc5 ojdbc6 需要我们手动将驱动安装到本地仓库 1.找到安装命令的位置在项目的目录下 mvnw就是我们要用到的安装工具 2.下载 驱动 3.安装驱动 把需要安装的驱动放到第一步...
oracle jdbc驱动jar,maven官网资源不存在的时候,可以从这里获取。