Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2187

frontend-maven-plugin downloads nodejs/yarn from external non-maven URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.4.0.GA
    • None
    • Build and Assembly
    • None
    • 2019 Week 23-25

      appformer-js brought the usage of com.github.eirslett:frontend-maven-plugin into our product build. The plugin unfortunately downloads nodejs and yarn packages from non-maven external sources.

      We can workaround this by setting the URL to the maven GAV, but that requires additional configuration for the plugin.

      See the error:

      ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:install-node-and-yarn (install yarn) on project appformer-js: Could not download Node.js: Could not download https://nodejs.org/dist/v11.6.0/node-v11.6.0-linux-x64.tar.gz: Network is unreachable (connect failed) -> [Help 1]
      DEBUG util.py:257:  [ERROR] 
      DEBUG util.py:257:  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      DEBUG util.py:257:  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      DEBUG util.py:257:  [ERROR] 
      DEBUG util.py:257:  [ERROR] For more information about the errors and possible solutions, please read the following articles:
      DEBUG util.py:257:  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      DEBUG util.py:257:  [ERROR] 
      DEBUG util.py:257:  [ERROR] After correcting the problems, you can resume the build with the command
      

      detailed error message:

      DEBUG util.py:257:  [ERROR]   mvn <goals> -rf :appformer-js
      
      DEBUG util.py:257:  [INFO] Downloading https://nodejs.org/dist/v11.6.0/node-v11.6.0-linux-x64.tar.gz to /builddir/.m2/repository/com/github/eirslett/node/11.6.0/node-11.6.0-linux-x64.tar.gz
      DEBUG util.py:257:  [INFO] No proxies configured
      DEBUG util.py:257:  [INFO] No proxy was configured, downloading directly
      DEBUG util.py:257:  Jun 06, 2019 2:46:11 PM org.apache.http.impl.execchain.RetryExec execute
      DEBUG util.py:257:  INFO: I/O exception (java.net.SocketException) caught when processing request to {s}->https://nodejs.org:443: Network is unreachable (connect failed)
      

              almorale Alberto Morales PĂ©rez (Inactive)
              mnovotny@redhat.com Marek Novotny
              Marek Winkler Marek Winkler (Inactive)
              Marek Winkler Marek Winkler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: