简体   繁体   English

如何在Maven本地存储库中添加Ojdbc14.jar?

[英]How to add Ojdbc14.jar in maven local repository?

Whenever I am trying to add 每当我尝试添加

<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>

in maven dependencies it shows Missing artifact com.oracle:ojdbc14:jar:10.2.0.2.0. 在Maven依赖项中,它显示缺少工件com.oracle:ojdbc14:jar:10.2.0.2.0。

What am I doing wrong? 我究竟做错了什么?

You need to install oracle jar file to your local repository manually See here 您需要手动将oracle jar文件安装到本地存储库中, 请参见此处

From command line you can run: 在命令行中,您可以运行:

mvn install:install-file -Dfile=<path-to-jar-file> -DgroupId=com.oracle \
-DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar

You can download the jar file here 您可以在此处下载jar文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM