-
Bug
-
Resolution: Done
-
Major
-
JDG 7.2 ER2
Our modules have features.xml files describing the OSGi bundles their dependencies, and use org.ops4j.pax.url to reference Maven dependencies, e.g.
<repository>mvn:org.infinispan.protostream/protostream/${version.protostream}/xml/features</repository>
The build doesn't use the protostream's features.xml, so OSGiKarafFeaturesTest.testCleanInstall tries to download it and cache it in the local repository. However, org.ops4j.pax.url uses the default Maven ~/.m2/settings.xml, so it can't find the redhat build and fails:
Error resolving artifact org.infinispan.protostream:protostream:xml:features:4.2.0.Alpha6-redhat-1: Could not find artifact org.infinispan.protostream:protostream:xml:features:4.2.0.Alpha6-redhat-1 in central (http://repo1.maven.org/maven2/) Stacktrace java.io.IOException: Error resolving artifact org.infinispan.protostream:protostream:xml:features:4.2.0.Alpha6-redhat-1: Could not find artifact org.infinispan.protostream:protostream:xml:features:4.2.0.Alpha6-redhat-1 in central (http://repo1.maven.org/maven2/) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:626) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:570) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:548) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:523) at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123) at org.apache.karaf.features.internal.FeatureValidationUtil.load(FeatureValidationUtil.java:97) at org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:59) at org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl.java:164) at org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:235) at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:920) at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:843) at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:373) at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:361) at Proxy8e35d9ee_7a46_4aa0_a0c7_51138d1e6568.installFeature(Unknown Source) at org.infinispan.it.osgi.features.OSGiKarafFeaturesTest.checkInstall(OSGiKarafFeaturesTest.java:108) at org.infinispan.it.osgi.features.OSGiKarafFeaturesTest.testCleanInstall(OSGiKarafFeaturesTest.java:81)
- duplicates
-
JDG-1253 OSGiKarafFeaturesTest.testCleanInstall cannot find artifacts
- Closed
- incorporates
-
JDG-1570 integrationtests-osgi fails with "gave up waiting for service org.ops4j.pax.exam.ProbeInvoker"
- Closed
- is duplicated by
-
JDG-1494 Test OSGiKarafFeaturesTest.testCleanInstall unanble to resolve artifact
- Closed
- is related to
-
ISPN-8755 Incorrect local repository path in OSGi integration tests
- Closed