缺少Jenkins构建错误:cn.guoyukun.jdbc:oracle-ojdbc6:jar:11.2.0.3.0

时间:2015-09-16 14:58:22

标签: maven jdbc jenkins

我正在尝试使用Jenkins构建maven项目。 bellow是詹金斯的maven配置 mavenConfiguration in jenkins 对我来说每件事看起来都很好,但是我得到了以下错误

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) cn.guoyukun.jdbc:oracle-ojdbc6:jar:11.2.0.3.0
   
----------
1 required artifact is missing.

for artifact: 
  com.varun:myproject:war:0.0.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

我可以看到错误是说maven无法解析

cn.guoyukun.jdbc:oracle-ojdbc6:jar:11.2.0.3.0 jar文件。 但在我的项目的lib文件夹中,我一直保持在jar之上。

我尝试了多种解决方案,但是工作。

在Jenkins / job / maven我保留了罐子。但这个工作也有效。

来自一些jenkins谷歌小组我找到了一些解决方案,但没有打包来修复它。

解决方案

Try downloading the file manually from the project website.

 Then, install it using the command: 
 mvn install:install-file -DgroupId=cn.guoyukun.jdbc -DartifactId=oracle-  ojdbc6 -Dversion=11.2.0.3.0 -Dpackaging=jar -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file there: 
 mvn deploy:deploy-file -DgroupId=cn.guoyukun.jdbc -DartifactId=oracle-    ojdbc6 -Dversion=11.2.0.3.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

以上解决方案对我来说没问题。 正如在第一个解决方案中提到的,我有那个jar文件,我正在尝试安装该jar。但我找不到命令。

我不知道如何实现上述解决方案。抱歉愚蠢,我对Jenkins和maven都很陌生。

任何机构都可以帮助我实现上述解决方案或任何其他解决方案。

0 个答案:

没有答案
相关问题