首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >丢失神迹甲骨文:ojdbc6 6:jar:11.2.0.3

丢失神迹甲骨文:ojdbc6 6:jar:11.2.0.3
EN

Stack Overflow用户
提问于 2018-07-20 18:06:13
回答 1查看 4.2K关注 0票数 0

我面临着“丢失神器甲骨文:ojdbc6 6:jar:11.2.0.3”问题。我浏览了很多博客,但没有成功。

我也尝试过使用ojdbc14,ojdbc7,但是我不能再继续了。

POM文件依赖项:

代码语言:javascript
复制
<!-- https://mvnrepository.com/artifact/oracle/ojdbc6 -->
        <dependency>
            <groupId>oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>11.2.0.3</version>
        </dependency>

MAVEN错误: Maven错误

我试图将oracle文件安装到本地存储库,但收到了以下错误。

安装:安装文件-Dfile={C:\Users\Riya.m2\repository\com\oracle\ojdbc6\11.2.0.3} -DgroupId=oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -DlocalRepositoryPath=C:\Users\Riya.m2\repository

代码语言:javascript
复制
C:\Preeti_WORK\WorkSpace\SPRING-BATCH\SpringWriteToDB>mvn install:install-file -Dfile={C:\Users\Riya\.m2\repository\com\oracle\ojdbc6\11.2.0.3} -DgroupId=oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -DloaclRepositoryPath=C:\Users\Riya\.m2\repository
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.spring:SpringWriteToDB >---------------------
[INFO] Building SpringBatchDemo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ SpringWriteToDB ---
**[ERROR] The specified file 'C:\Preeti_WORK\WorkSpace\SPRING-BATCH\SpringWriteToDB\{C:\Users\Riya\.m2\repository\com\oracle\ojdbc6\11.2.0.3}' not exists
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project SpringWriteToDB: The specified file 'C:\Preeti_WORK\WorkSpace\SPRING-BATCH\SpringWriteToDB\{C:\Users\Riya\.m2\repository\com\oracle\ojdbc6\11.2.0.3}' not exists -> [Help 1]**
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

我遵循以下链接中的步骤,但无法取得进展。缺失工件com.oracle:ojdbc6 6:jar:11.2.0.3

我正在使用我的个人笔记本电脑,有什么与setting.xml文件有关吗?我不得不面对公司笔记本电脑的问题,因为它有本地的存储库设置。

EN

回答 1

Stack Overflow用户

发布于 2018-07-20 23:24:33

产出很清楚:

指定的文件'C:\Preeti_WORK\WorkSpace\SPRING-BATCH\SpringWriteToDB{C:\Users\Riya.m2\repository\com\oracle\ojdbc6\11.2.0.3}‘不存在。

我想您是从这个目录运行这个命令的。

代码语言:javascript
复制
'C:\Preeti_WORK\WorkSpace\SPRING-BATCH\SpringWriteToDB\'. 

只需将您的jar放在该目录中并运行:

mvn安装:install- -Dfile=myfile.jar -Dfile=myfile.jar -DgroupId=oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -Dpackaging=jar

Maven将在这里期待jar文件,'C:\Preeti_WORK\WorkSpace\SPRING-BATCH\SpringWriteToDB\myfile.jar‘,它将安装您的工件。

重要注意事项:使用文件的完整路径更安全。前面的命令将使用文件的相对路径。

代码语言:javascript
复制
mvn install:install-file -Dfile=C:\Preeti_WORK\WorkSpace\SPRING-BATCH\SpringWriteToDB\ojdbc6.jar -DgroupId=oracle -DartifactId=ojdbc6 -Dversion=11.2.0.3 -Dpackaging=jar -DlocalRepositoryPath=C:\Users\Riya.m2\repository
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51448175

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档