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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • None
    • fuse-6.3-R16-GA
    • Fuse Standalone, Karaf
    • None
    • % %
    • Hide

      Upgrade your Oracle JDK 1.7 to Oracle JDK 1.8.

      Show
      Upgrade your Oracle JDK 1.7 to Oracle JDK 1.8 .
    • 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

      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.

              rhn-support-tmielke Torsten Mielke
              ecervena@redhat.com Emil Cervenan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: