我在Artifactory中有一个maven神器。我试图在Maven的一个项目中引用它。我有如下所示的依赖元素。
<dependency>
<groupId>com.ci.servicemanager</groupId>
<artifactId>ci-service-manager</artifactId>
<version>LATEST</version>
</dependency>
但它失败了以下显示的错误。
[ERROR] Failed to execute goal on project integration-tests: Could not resolve dependencies for project intelligence:integration-tests:jar:1.0-SNAPSHOT: Failure to find com.ci.servicemanager:ci-service-manager:all-jar:8126251 in https://artifactory.mkn.ci.cloud/artifactory/CI-Release-Local was cached in the local repository, resolution will not be reattempted until the update interval of CI-Release-Local has elapsed or updates are forced -> [Help 1]
当我到达我的本地仓库时,我可以用所示的方式看到下载工件。
csv2980:8126251 mmacilamany$ ls -al
total 48
drwxr-xr-x 8 mmacilamany admin 256 Apr 30 15:48 .
drwxr-xr-x 6 mmacilamany admin 192 Apr 30 15:33 ..
-rw-r--r-- 1 mmacilamany admin 183 Apr 30 15:33 _remote.repositories
-rw-r--r-- 1 mmacilamany admin 297 Apr 30 15:48 ci-service-manager-8126251.all-.lastUpdated
-rw-r--r-- 1 mmacilamany admin 297 Apr 30 15:48 ci-service-manager-8126251.all-jar.lastUpdated
-rw-r--r-- 1 mmacilamany admin 297 Apr 30 15:33 ci-service-manager-8126251.jar.lastUpdated
-rw-r--r-- 1 mmacilamany staff 461 Apr 30 15:33 ci-service-manager-8126251.pom
-rw-r--r-- 1 mmacilamany staff 40 Apr 30 15:33 ci-service-manager-8126251.pom.sha1
虽然这些罐子正在下载,但为什么我会收到错误?我尝试删除本地repo工件并再次尝试。仍然没有运气。任何帮助将不胜感激。
编辑:当我删除本地仓库时,maven正试图从此URL下载,正在下载:https://artifactory.mkn.ci.cloud/artifactory/CI-Release-Local/com/ci/servicemanager/ci-service-manager/8126251/ci-service-manager-8126251.jar。 但实际可下载的URL看起来像。
差异是实际上传文件名称中的附加“-all.jar”。我该如何处理这种情况。