所以我有一个项目,我尝试使用 Maven 构建它。我的依赖之一是:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
</dependency>
我已经安装了 Oracle 驱动程序,并且我的本地存储库中也有它。我确保手动将其放在那里。但当我想构建我的项目时,我仍然收到此错误。
[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]
有人知道为什么吗?我是否需要检查其他地方或者我错过了什么?
最佳答案
Ojdbc6 驱动程序不在公共(public) Maven 存储库中。检查this .
如果你可以使用Ojdbc7,它was recently added通过Oracle到maven公共(public)仓库,大家可以尝试一下。
关于java - Maven ojdbc配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39012464/