Open mattfirtion opened 7 years ago
Hi all, I have the solution for this, It is working fine for me and the build got success. Don't DO's:
please do not add any new entry in pom.xml like the below
` <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
<npmDownloadRoot>http://registry.npmjs.org/npm/-/</npmDownloadRoot>`
DO's.
I hope it will help you guys... :)
Regards, Senthilkumar.S RENAULT NISSAN-CHENNAI
@senthilkumarselvakesavan, that solution is fine if you can download the archive through a proxy. nodeDownloadRoot
and npmDownloadRoot
allow you to specify a different location, i.e. an internal web server.
This is documented in the plugin, so I don't see how this is a "Don't".
Have the same issue with version 1.5
This is not an issue of the proxy not being properly identified. This happens when the corporate network is replacing all SSL certificates with their own. These certs are not trusted by default.
is there any way to avoid it? or this plugin cant be used in such case?:/
any new on this topic ? i also met this case
and in my case, curl works well
curl https://nodejs.org/dist/v10.11.0/node-v10.11.0-linux-x64.tar.gz -o tmp
but npm install shows that error
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project alluxio-webui: Could not download Node.js: Could not download https://nodejs.org/dist/v10.11.0/node-v10.11.0-linux-x64.tar.gz: Unrecognized SSL message, plaintext connection? -> [Help 1]
fine, i find a solution to workaround ... just replace https to http (thx for the http protocol is still supported by node and npm ...)
<!-- optional: where to download node from. Defaults to https://nodejs.org/dist/ -->
<nodeDownloadRoot>http://nodejs.org/dist/</nodeDownloadRoot>
<!-- optional: where to download npm from. Defaults to https://registry.npmjs.org/npm/-/ -->
<npmDownloadRoot>http://registry.npmjs.org/npm/-/</npmDownloadRoot>
Running mvn with a -Djavax.net.debug=ssl
flag shows, that whole maven loads my JAVA_HOME keystore:
trustStore is: C:\Program Files\...\jre\lib\security\cacerts
but when its time to download the node from a host with certificate added to above keystore there are separate logs section:
keyStore is :
keyStore type is : jks
so for unknown reason FileDownloader/DefaultFileDownloader doesn't use keystore from JAVA_HOME but empty/none/default one so there is no way to install certificate :(
After installing the certificate chain in cacerts please use the following arguments:
-Djavax.net.ssl.trustStore={Path to your keystore}
-Djavax.net.ssl.trustStorePassword={Password of your keystore}
Supporting patricker comment, I disabled my corporate VPN and it worked.
Do you want to request a feature or report a bug? Bug
What is the current behavior? When specifying the nodeDownloadRoot to a location that is using a self-signed certificate or certificate that may not be trusted, the plugin fails to download even though command line options specify to ignore SSL errors.
If the current behavior is a bug, please provide the steps to reproduce.
mvn clean package -U -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
What is the expected behavior? Node is downloaded and installed.
Please mention your frontend-maven-plugin and operating system version. Frontend-Maven-Plugin v1.6 OS: RHEL 7.3