apache-karaf - 找不到 org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0.RC1
问题描述
通过 Pax-Exam 运行 Apache Karaf 时出现以下错误
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.1.5:features-add-to-repository (features-add-to-repository) on project my-project: Error populating repository: Can't resolve artifact org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1.0.0.RC1,2): Failure to find org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1.0.0.RC1,2) in http://x.x.x.x/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=[1.0.0.RC1,2) -Dclassifier=features -Dpackaging=xml -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=[1.0.0.RC1,2) -Dclassifier=features -Dpackaging=xml -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
所以我尝试使用下面的 maven 命令手动获取它
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get
-DrepoUrl=https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases
-Dartifact=org.ops4j.pax.cdi:pax-cdi-features:1.0.0
但它仍然给出以下错误并且无法下载它
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:get (default-cli) on project standalone-pom: Couldn't download artifact
: Failure to find org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0 in http://x.x.x.x/nexus/content/groups/public was cached in the local repository, res
olution will not be reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.ops4j.pax.cdi -DartifactId=pax-cdi-features -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[ur
l] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] nexus (http://x.x.x.x/nexus/content/groups/public, releases=true, snapshots=true),
[ERROR] temp (https://oss.sonatype.org/content/repositories/ops4j-snapshots@id=ops4j.sonatype.snapshots.deploy@snapshots@noreleases, releases=true, snaps
hots=true)
Update1: 我在手动下载时发现它询问maven-downloader-plugin但我找不到这个插件
←[1;31mERROR←[m] ←[1;31m Path to dependency: ←[m
←[1;31mERROR←[m] ←[1;31m 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0←[m
←[1;31mERROR←[m] ←[1;31m 2) org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0.RC2←[m
←[1;31mERROR←[m] ←[1;31m←[m
←[1;31mERROR←[m] ←[1;31m----------←[m
←[1;31mERROR←[m] ←[1;31m1 required artifact is missing.←[m
←[1;31mERROR←[m] ←[1;31m←[m
←[1;31mERROR←[m] ←[1;31mfor artifact: ←[m
←[1;31mERROR←[m] ←[1;31m org.apache.maven.plugins:maven-downloader-plugin:jar:1.0←[m
解决方案
推荐阅读
- windows - 在 Windows 中,如何迭代给定目录并使用批处理命令在文件中进行替换操作?
- android - Kotlin:如何在 SharedPreferences 中保存数组列表
- android - 如何修复“AAPT:在包'android'中找不到属性'appComponentFactory'的资源标识符”
- matlab - 如何测试 Matlabs 阻止 uiconfirm?
- mysql - 如何在 Windows 中使用 mysql 在 docker 中运行 joomla
- java - Spring Data JPA - 保存重复的复合键时不会出现任何错误
- c# - 解决方案的某些 DLL-s 中使用了不同版本的 C#
- java - 我如何设置一个监听器,当我的新位置在多边形内时通知我(有点像地理围栏)
- visual-studio-code - Visual Studio Code - 在 Windows 上的“选择默认外壳”列表中添加选项?
- android - 如何将值从 android 编辑文本发送到我的网站以进行登录?