开发者社区 问答 正文

eclipse maven 项目一直报错 无法install,ojdbc 本地已经有了?报错

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building splat-core-gen 1.0.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.sml.sz:splat-framework🏺1.0.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.592 s
[INFO] Finished at: 2016-09-19T15:27:41+08:00
[INFO] Final Memory: 7M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project splat-core-gen: Could not resolve dependencies for project com.sml.sz:splat-core-gen🏺1.0.0: The following artifacts could not be resolved: com.oracle:ojdbc14🏺10.2.0.4.0, com.sml.sz:splat-framework🏺1.0.0: Failure to find com.oracle:ojdbc14🏺10.2.0.4.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException6



展开
收起
爱吃鱼的程序员 2020-06-09 10:27:48 627 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    删掉本地仓库的jar包,或者加-U强制更新提示缺包,看看你仓库的包有没有,或者即使有你的包其实不是完整的也不行无所谓 看下你的maven-lib中有没有引入这个包,有的话项目一样跑删除本地库,然后再次更新本地库

    看看是不是maven正在运行,

    然后是不是应该先clean一下

    在者如果不行,就把target(貌似是叫这个名字)的文件夹删除,重新install试试、

    已解决,给中央库没有的jar重新生成就好,然后更新项目

    2020-06-09 15:45:02
    赞同 展开评论