Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1543

OSGiKarafFeaturesTest.testCleanInstall always fails

    XMLWordPrintable

Details

    • JDG Sprint #9

    Description

      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)
      

      Attachments

        Issue Links

          Activity

            People

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: