Maven ojdbc configuration error

Deadly 提交于 2019-12-24 06:48:40

问题


So I have a project and I try to build it with Maven. One of my dependencies is this:

<dependency>
        <groupId>com.oracle</groupId>
        <artifactId>ojdbc6</artifactId>
</dependency>

I have the Oracle driver installed and I also have it in my local repo. I made sure to put it there manually. And still when I want to build my project I get this error.

[ERROR] Failed to execute goal on project bla: Could not resolve dependencies for project dbla:jar:0.0.1-SNAPSHOT: Failure to find com.oracle:ojdbc6:jar:11.2.0.4 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]

Does anybody have any idea why? Do I have to check somewhere else or did I miss something?


回答1:


Ojdbc6 driver is not in a public maven repository. Check this.

If you can use Ojdbc7, it was recently added by Oracle to maven public repository, so you can have a try.



来源:https://stackoverflow.com/questions/39012464/maven-ojdbc-configuration-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!