Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13343

Maven resolution of remote repository artifacts are broken on Oracle JDK7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Explained
    • Affects Version/s: fuse-6.3-R16-GA
    • Fix Version/s: None
    • Component/s: Fuse Standalone, Karaf
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. unzip 630444 https://origin-repository.jboss.org/nexus/content/groups/ea/org/jboss/fuse/jboss-fuse-karaf/6.3.0.redhat-444/jboss-fuse-karaf-6.3.0.redhat-444.zip
      2. add user (etc/users.properties)
      3. download example maven-settings.xml from attachment
      4. set org.ops4j.pax.url.mvn.settings property to maven-settings.xml in etc/org.ops4j.pax.url.mvn.cfg
      5. in same file remove org.ops4j.pax.url.mvn.repositories property
      6. in bin/setenv add "export JAVA_HOME=/path/to/oracle/JDK7"
      7. bin/fuse
      8. execute "install mvn:jboss/jboss-common/4.2.2.GA"
      9. ld for error message

      Show
      1. unzip 630444 https://origin-repository.jboss.org/nexus/content/groups/ea/org/jboss/fuse/jboss-fuse-karaf/6.3.0.redhat-444/jboss-fuse-karaf-6.3.0.redhat-444.zip 2. add user (etc/users.properties) 3. download example maven-settings.xml from attachment 4. set org.ops4j.pax.url.mvn.settings property to maven-settings.xml in etc/org.ops4j.pax.url.mvn.cfg 5. in same file remove org.ops4j.pax.url.mvn.repositories property 6. in bin/setenv add "export JAVA_HOME=/path/to/oracle/JDK7" 7. bin/fuse 8. execute "install mvn:jboss/jboss-common/4.2.2.GA" 9. ld for error message
    • Workaround Description:
      Hide

      Upgrade your Oracle JDK 1.7 to Oracle JDK 1.8.

      Show
      Upgrade your Oracle JDK 1.7 to Oracle JDK 1.8 .

      Description

      The test fails on the latest free Oracle 1.7. QE doesn't have access to the Extended Support of Oracle 1.7 JDK.

      Trying to resolve maven artifact from remote repository in Karaf

      install mvn:jboss/jboss-common/4.2.2.GA
      

      Artifact is in maven central and repository is set in external settings.xml which is pointed in org.ops4j.pax.url.mvn.cfg as org.ops4j.pax.url.mvn.settings=path.to.settingx.xml

      I'm getting:

       java.io.IOException: Error resolving artifact jboss:jboss-common:jar:4.2.2.GA: [Could not transfer artifact jboss:jboss-common:jar:4.2.2.GA from/to fuse-qe-repo (http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-qe-repo/): Connect to nexus.fuse-qe.eng.rdu2.redhat.com:80 [nexus.fuse-qe.eng.rdu2.redhat.com/10.0.13.21] failed: Connection refused, Could not transfer artifact jboss:jboss-common:jar:4.2.2.GA from/to central (https://repo1.maven.org/maven2/): Received fatal alert: protocol_version]
      

      It works fine with OpenJDK7, OpenJDK8 and Oracle JDK8.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mielket Torsten Mielke
                Reporter:
                emil.cervenan Emil Cervenan
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: