Не удалось найти org.ops4j.pax.cdi:pax-cdi-features:jar:1.0.0.RC1
Я получил следующую ошибку при запуске Apache Karaf через Pax-Exam
[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)
Обновление 1: я обнаружил при загрузке вручную его вопрос о плагине maven-downloader, но я не мог найти этот плагин
←[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