I am trying to run maven-frontend-plugin
but when downloading nodejs, I get the following error:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So I was trying to ignore the cert check. I have exhausted all possibilities, searching through this forum.
Attempt 1:
Ran
mvn clean install -e -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.resolver.transport=wagon
Still get the above error.
Attempt 2:
Added:
<maven.wagon.http.ssl.insecure>true</maven.wagon.http.ssl.insecure>
<maven.wagon.http.ssl.allowall>true</maven.wagon.http.ssl.allowall>
<maven.wagon.http.ssl.ignore.validity.dates>true</maven.wagon.http.ssl.ignore.validity.dates>
<maven.resolver.transport>wagon</maven.resolver.transport>
to the settings.xml under <properties>
tag of the profile.
Still the same.
Still the above error.
Attempt 3:
Created .mvn
folder under C:\Users\sam2004\.mvn
. Created a file maven.config
. Added
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true
-Dmaven.resolver.transport=wagon
None of these methods worked for me. Tried on version 3.6.3 and 3.9.5. Got the same error.
EDIT:
Adding the full stacktrace:
[INFO] --- frontend:1.12.0:install-node-and-yarn (install node and yarn) @ vid-webpack-master ---
[INFO] Found proxies: [http-proxy{protocol='http', host='some_proxy', port=8888, nonProxyHosts='127.0.0.1'}, https-proxy{protocol='https', host='some_proxy', port=8888, nonProxyHosts='127.0.0.1'}]
[INFO] Installing node version v16.5.1
[INFO] Downloading .5.1/win-x64/node.exe to C:\Users\sam2004\.m2\com\github\eirslett\node\16.5.1\node-16.5.1-win-x64.exe
[INFO] Downloading via proxy http-proxy{protocol='http', host='some_proxy', port=8888, nonProxyHosts='127.0.0.1'}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.226 s
[INFO] Finished at: 2025-03-20T17:57:50+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-yarn (install node and yarn) on project vid-webpack-master: Could not download Node.js from: .5.1/win-x64/node.exe: Could not download .5.1/win-x64/node.exe: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-yarn (install node and yarn) on project vid-webpack-master: Could not download Node.js from: .5.1/win-x64/node.exe: Could not download .5.1/win-x64/node.exe
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: .apache.maven.plugin.MojoFailureException: Could not download Node.js from: .5.1/win-x64/node.exe: Could not download .5.1/win-x64/node.exe
at com.github.eirslett.maven.plugins.frontend.mojo.MojoUtils.toMojoFailureException (MojoUtils.java:28)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:103)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.InstallationException: Could not download Node.js from: .5.1/win-x64/node.exe
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeForWindows (NodeInstaller.java:291)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.install (NodeInstaller.java:92)
at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndYarnMojo.execute (InstallNodeAndYarnMojo.java:81)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.DownloadException: Could not download .5.1/win-x64/node.exe
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.download (FileDownloader.java:81)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFile (NodeInstaller.java:337)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFileIfMissing (NodeInstaller.java:330)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeForWindows (NodeInstaller.java:284)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.install (NodeInstaller.java:92)
at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndYarnMojo.execute (InstallNodeAndYarnMojo.java:81)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: javax.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alert.createSSLException (Alert.java:131)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:371)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:314)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:309)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:654)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume (SSLHandshake.java:396)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:480)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:458)
at sun.security.ssl.TransportContext.dispatch (TransportContext.java:201)
at sun.security.ssl.SSLTransport.decode (SSLTransport.java:172)
at sun.security.ssl.SSLSocketImpl.decode (SSLSocketImpl.java:1506)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord (SSLSocketImpl.java:1421)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:455)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:426)
at .apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket (SSLConnectionSocketFactory.java:394)
at .apache.http.impl.conn.DefaultHttpClientConnectionOperator.upgrade (DefaultHttpClientConnectionOperator.java:192)
at .apache.http.impl.conn.PoolingHttpClientConnectionManager.upgrade (PoolingHttpClientConnectionManager.java:369)
at .apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:415)
at .apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
at .apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
at .apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88)
at .apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
at .apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184)
at .apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:82)
at .apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:107)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.executeViaProxy (FileDownloader.java:126)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.execute (FileDownloader.java:90)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.download (FileDownloader.java:69)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFile (NodeInstaller.java:337)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFileIfMissing (NodeInstaller.java:330)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeForWindows (NodeInstaller.java:284)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.install (NodeInstaller.java:92)
at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndYarnMojo.execute (InstallNodeAndYarnMojo.java:81)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild (PKIXValidator.java:439)
at sun.security.validator.PKIXValidator.engineValidate (PKIXValidator.java:306)
at sun.security.validator.Validator.validate (Validator.java:264)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted (X509TrustManagerImpl.java:231)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted (X509TrustManagerImpl.java:132)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:638)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume (SSLHandshake.java:396)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:480)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:458)
at sun.security.ssl.TransportContext.dispatch (TransportContext.java:201)
at sun.security.ssl.SSLTransport.decode (SSLTransport.java:172)
.
.
.
The plugin configuration is:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${eirslett.version}</version>
<configuration>
<!-- See / for latest node and npm (lts) versions -->
<yarnVersion>${yarn.version}</yarnVersion>
<nodeVersion>${node.version}</nodeVersion>
</configuration>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
</configuration>
</execution>
.
.
.
.
Couldn't post the full error. Reached the character limit!
I am trying to run maven-frontend-plugin
but when downloading nodejs, I get the following error:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So I was trying to ignore the cert check. I have exhausted all possibilities, searching through this forum.
Attempt 1:
Ran
mvn clean install -e -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -Dmaven.resolver.transport=wagon
Still get the above error.
Attempt 2:
Added:
<maven.wagon.http.ssl.insecure>true</maven.wagon.http.ssl.insecure>
<maven.wagon.http.ssl.allowall>true</maven.wagon.http.ssl.allowall>
<maven.wagon.http.ssl.ignore.validity.dates>true</maven.wagon.http.ssl.ignore.validity.dates>
<maven.resolver.transport>wagon</maven.resolver.transport>
to the settings.xml under <properties>
tag of the profile.
Still the same.
Still the above error.
Attempt 3:
Created .mvn
folder under C:\Users\sam2004\.mvn
. Created a file maven.config
. Added
-Dmaven.wagon.http.ssl.insecure=true
-Dmaven.wagon.http.ssl.allowall=true
-Dmaven.wagon.http.ssl.ignore.validity.dates=true
-Dmaven.resolver.transport=wagon
None of these methods worked for me. Tried on version 3.6.3 and 3.9.5. Got the same error.
EDIT:
Adding the full stacktrace:
[INFO] --- frontend:1.12.0:install-node-and-yarn (install node and yarn) @ vid-webpack-master ---
[INFO] Found proxies: [http-proxy{protocol='http', host='some_proxy', port=8888, nonProxyHosts='127.0.0.1'}, https-proxy{protocol='https', host='some_proxy', port=8888, nonProxyHosts='127.0.0.1'}]
[INFO] Installing node version v16.5.1
[INFO] Downloading https://nodejs./dist/v16.5.1/win-x64/node.exe to C:\Users\sam2004\.m2\com\github\eirslett\node\16.5.1\node-16.5.1-win-x64.exe
[INFO] Downloading via proxy http-proxy{protocol='http', host='some_proxy', port=8888, nonProxyHosts='127.0.0.1'}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.226 s
[INFO] Finished at: 2025-03-20T17:57:50+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-yarn (install node and yarn) on project vid-webpack-master: Could not download Node.js from: https://nodejs./dist/v16.5.1/win-x64/node.exe: Could not download https://nodejs./dist/v16.5.1/win-x64/node.exe: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:install-node-and-yarn (install node and yarn) on project vid-webpack-master: Could not download Node.js from: https://nodejs./dist/v16.5.1/win-x64/node.exe: Could not download https://nodejs./dist/v16.5.1/win-x64/node.exe
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: .apache.maven.plugin.MojoFailureException: Could not download Node.js from: https://nodejs./dist/v16.5.1/win-x64/node.exe: Could not download https://nodejs./dist/v16.5.1/win-x64/node.exe
at com.github.eirslett.maven.plugins.frontend.mojo.MojoUtils.toMojoFailureException (MojoUtils.java:28)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:103)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.InstallationException: Could not download Node.js from: https://nodejs./dist/v16.5.1/win-x64/node.exe
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeForWindows (NodeInstaller.java:291)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.install (NodeInstaller.java:92)
at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndYarnMojo.execute (InstallNodeAndYarnMojo.java:81)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: com.github.eirslett.maven.plugins.frontend.lib.DownloadException: Could not download https://nodejs./dist/v16.5.1/win-x64/node.exe
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.download (FileDownloader.java:81)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFile (NodeInstaller.java:337)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFileIfMissing (NodeInstaller.java:330)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeForWindows (NodeInstaller.java:284)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.install (NodeInstaller.java:92)
at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndYarnMojo.execute (InstallNodeAndYarnMojo.java:81)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: javax.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alert.createSSLException (Alert.java:131)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:371)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:314)
at sun.security.ssl.TransportContext.fatal (TransportContext.java:309)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:654)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume (SSLHandshake.java:396)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:480)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:458)
at sun.security.ssl.TransportContext.dispatch (TransportContext.java:201)
at sun.security.ssl.SSLTransport.decode (SSLTransport.java:172)
at sun.security.ssl.SSLSocketImpl.decode (SSLSocketImpl.java:1506)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord (SSLSocketImpl.java:1421)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:455)
at sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:426)
at .apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket (SSLConnectionSocketFactory.java:394)
at .apache.http.impl.conn.DefaultHttpClientConnectionOperator.upgrade (DefaultHttpClientConnectionOperator.java:192)
at .apache.http.impl.conn.PoolingHttpClientConnectionManager.upgrade (PoolingHttpClientConnectionManager.java:369)
at .apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:415)
at .apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
at .apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
at .apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88)
at .apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
at .apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184)
at .apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:82)
at .apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:107)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.executeViaProxy (FileDownloader.java:126)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.execute (FileDownloader.java:90)
at com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader.download (FileDownloader.java:69)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFile (NodeInstaller.java:337)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.downloadFileIfMissing (NodeInstaller.java:330)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeForWindows (NodeInstaller.java:284)
at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.install (NodeInstaller.java:92)
at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndYarnMojo.execute (InstallNodeAndYarnMojo.java:81)
at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
at .apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at .apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at .apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at .apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at .apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at .apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at .apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at .apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at .apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at .apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at .apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at .apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at .apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at .apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at .codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
at .codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
at .codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
at .codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild (PKIXValidator.java:439)
at sun.security.validator.PKIXValidator.engineValidate (PKIXValidator.java:306)
at sun.security.validator.Validator.validate (Validator.java:264)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted (X509TrustManagerImpl.java:231)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted (X509TrustManagerImpl.java:132)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts (CertificateMessage.java:638)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate (CertificateMessage.java:473)
at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume (CertificateMessage.java:369)
at sun.security.ssl.SSLHandshake.consume (SSLHandshake.java:396)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:480)
at sun.security.ssl.HandshakeContext.dispatch (HandshakeContext.java:458)
at sun.security.ssl.TransportContext.dispatch (TransportContext.java:201)
at sun.security.ssl.SSLTransport.decode (SSLTransport.java:172)
.
.
.
The plugin configuration is:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${eirslett.version}</version>
<configuration>
<!-- See https://nodejs./en/download/ for latest node and npm (lts) versions -->
<yarnVersion>${yarn.version}</yarnVersion>
<nodeVersion>${node.version}</nodeVersion>
</configuration>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
</configuration>
</execution>
.
.
.
.
Couldn't post the full error. Reached the character limit!
Share Improve this question edited Mar 20 at 14:55 hell_storm2004 asked Mar 20 at 12:45 hell_storm2004hell_storm2004 1,6155 gold badges46 silver badges77 bronze badges 6- Please provide the backtrace for that error. – bmargulies Commented Mar 20 at 12:54
- @bmargulies Added. – hell_storm2004 Commented Mar 20 at 13:09
- Your error seems to be happening in com.github.eirslett:frontend-maven-plugin, not the wagon. – bmargulies Commented Mar 20 at 13:11
- Share the pom.xml for the project, specifically the configuration of com.github.eirslett:frontend-maven-plugin. – aled Commented Mar 20 at 13:30
- @aled Added the plugin section of the pom. It is failing during the download of nodejs/yarn. – hell_storm2004 Commented Mar 20 at 14:56
1 Answer
Reset to default 0A brief survey of the literature (cough) suggests that there is no way to suppress these errors: you need to obtain the missing intermediate certificate and add it to your trust store. It is possible that upgrading to a newer JVM would get it for you -- it seems somehow unlikely that node.js is really operating with a weird certificate. You can follow various cookbooks to discover exactly what certificate is missing - "PKIX path building failed" and "unable to find valid certification path to requested target" would be a place to start.
It is remotely possible that you've got some sort of bad MITM proxy interfering with communications. Accessing that URL from a browser should give you some ideas.