Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-3234

PaxExam update needed to support Maven's HTTPS requirement

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Fedora 5.0.2
    • Fix Version/s: None
    • Component/s: f4-camel
    • Labels:
      None

      Description

      Maven now requires you to use HTTPS when downloading packages, but for the KarafIT tests in fcrepo-camel and fcrepo-camel-toolbox the old PaxExam still uses non-SSL connections which fail.

      See the issue in Islandora that revealed this issue to me.

      This needs the 4.14.0 release of PaxExam which is not yet released.

      To replicate, delete your local maven repository (~/.m2/repository in Mac or Linux) and build fcrepo-camel.

       

      See

      Running org.fcrepo.camel.integration.KarafIT
      [ main] ProbeRunner INFO creating PaxExam runner for class org.fcrepo.camel.integration.KarafIT
      [ main] ProbeRunner INFO running test class org.fcrepo.camel.integration.KarafIT
      [ main] KarafTestContainer INFO Wait for test container to finish its initialization [ RelativeTimeout value = 180000 ]
      [ main] RemoteBundleContextClient INFO Waiting for remote bundle context.. on 21000 name: 64436318-6db6-4eb4-9c41-92203b3d7e49 timout: [ RelativeTimeout value = 180000 ]
      2020-02-20 08:07:03,238 | WARN | pool-7-thread-1 | AetherBasedResolver | 1 - org.ops4j.pax.logging.pax-logging-api - 1.8.5 | Error resolving artifactorg.ops4j.pax.exam:pax-exam-features:xml:4.9.2:Could not transfer artifact org.ops4j.pax.exam:pax-exam-features:xml:4.9.2 from/to central (http://repo1.maven.org/maven2/): Failed to transfer file: http://repo1.maven.org/maven2/org/ops4j/pax/exam/pax-exam-features/4.9.2/pax-exam-features-4.9.2.xml. Return code is: 501 , ReasonPhrase:HTTPS Required.
      shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.ops4j.pax.exam:pax-exam-features:xml:4.9.2 from/to central (http://repo1.maven.org/maven2/): Failed to transfer file: http://repo1.maven.org/maven2/org/ops4j/pax/exam/pax-exam-features/4.9.2/pax-exam-features-4.9.2.xml. Return code is: 501 , ReasonPhrase:HTTPS Required.
      {{ at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:650)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:576)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:550)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)[7:org.ops4j.pax.url.mvn:2.4.7]}}
      {{ at java.net.URL.openStream(URL.java:1038)[:1.8.0_45]}}

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            whikloj Jared Whiklo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: