我有一个带有这些依赖项的maven项目:
<dependency>
<groupId>oracle</groupId>
<artifactId>sdoapi</artifactId>
<version>11.2.0</version>
</dependency>
我在pom.xml文件上有这个错误,我已经清理了我的存储库:
Missing artifact oracle:sdoapi:jar:
11.2.0
但该文件显然位于maven存储库中
https://mvnrepository.com/artifact/oracle/sdoapi/11.2.0
执行mvn clean install
我收到了这个错误:
[ERROR] Failed to execute goal on project geohotels: Could not resolve dependencies for project geohotels:geohotels:war:0.0.1-SNAPSHOT: Failure to find oracle:sdoapi:jar:11.2.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]
但在错误出现之前,我会在清理完所有内容后看到这一点:
Downloading: https://repo.maven.apache.org/maven2/oracle/sdoapi/11.2.0/sdoapi-11.2.0.pom
[WARNING] The POM for oracle:sdoapi:jar:11.2.0 is missing, no dependency information available
答案 0 :(得分:0)
我手动安装它并且可以正常工作:
mvn install:install-file -Dfile=sdoapi-11.2.0.jar -DgroupId=oracle -DartifactId=sdoapi -Dversion=11.2.0 -Dpackaging=jar