Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2486

Java Vert.X fails to download dependencies in airgapped mode

XMLWordPrintable

    • False
    • False
    • Workaround Exists
    • Hide

      Two possible options:
      1. Add -Djavax.net.ssl.trustStore=/path_to_truststore/truststore.jks -Djavax.net.ssl.trustStorePassword=store_password into MAVEN_OPTS in 1. Build command
      2. Remove MAVEN_OPTS='-Xmx200m' from the 1. Build command

      Show
      Two possible options: 1. Add -Djavax.net.ssl.trustStore=/path_to_truststore/truststore.jks -Djavax.net.ssl.trustStorePassword=store_password into MAVEN_OPTS in 1. Build command 2. Remove MAVEN_OPTS='-Xmx200m' from the 1. Build command

      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------< io.openshift.example:http-vertx >-------------------
      [INFO] Building Vert.x - HTTP 41-SNAPSHOT
      [INFO] --------------------------------[ jar ]---------------------------------
      Downloading from maven-central: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/maven-central/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from redhat-ga: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/redhat-ga/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from redhat-ga-repository: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/redhat-ga/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from redhat-ea-repository: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/redhat-ga/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from redhat-early-access: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/earlyaccess/all/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from central: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/maven-central/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from jboss-public: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/jboss-public/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from jboss-public-repository-group: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/jboss-public/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      Downloading from jboss-enterprise-maven-repository: https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/maven-central/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  1.513 s
      [INFO] Finished at: 2021-11-21T21:46:22Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Plugin pl.project13.maven:git-commit-id-plugin:4.0.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for pl.project13.maven:git-commit-id-plugin:jar:4.0.2: Could not transfer artifact pl.project13.maven:git-commit-id-plugin:pom:4.0.2 from/to maven-central (https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/maven-central/): Transfer failed for https://ec2-3-145-46-151.us-east-2.compute.amazonaws.com:8081/repository/maven-central/pl/project13/maven/git-commit-id-plugin/4.0.2/git-commit-id-plugin-4.0.2.pom: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException 

      Configured according to instructions in https://red-hat-developers-documentation.pages.redhat.com/red-hat-devtools/crw-end-user-guide-ccutil/#proc_defining-maven-settings-xml-file-across-workspaces_crw

      Tried multiple things:

      • Different home folders
      • Re-created the trust keystore from scratch
      • Added JAVA_OPTS variable before the mvn command in devfile

              vsvydenk Valerii Svydenko
              tdancs Tibor Dancs (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: