所以我有一个项目,我试着用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]有人知道为什么吗?我是不是必须去别的地方检查,或者我漏掉了什么?
发布于 2016-08-18 15:45:19
Ojdbc6驱动程序不在公共maven存储库中。检查this。
如果您可以使用Ojdbc7,它将被Oracle was recently added到maven公共存储库,因此您可以尝试一下。
https://stackoverflow.com/questions/39012464
复制相似问题