frontend-maven-plugin插件无法下载nodejs和npm的问题

npm clean package 报错:

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) on project XXX:
 Could not download Node.js: Could not download https://nodejs.org/dist/v9.11.1/node-v9.11.1-linux-x64.tar.gz:
  sun.security.validator.ValidatorException: PKIX path building failed: 
  sun.security.provider.certpath.SunCertPathBuilderException:
  unable to find valid certification path to requested target -> [Help 1]

 

修改 pom.xml文件中的frontend-maven-plugin插件配置:


        com.github.eirslett
        frontend-maven-plugin
        ${frontend-maven-plugin.version}
        
          
            install node and npm
            
              install-node-and-npm
            
            
              http://nodejs.org/dist/
              http://registry.npmjs.org/npm/-/
              v9.11.1
            
          
          
          
            npm install
            
              npm
            
            
            generate-resources
            
            
              install
            
          
          
          
            npm run build
            
              npm
            
            
              run build
            
          
        
      

添加了:

              http://nodejs.org/dist/
              http://registry.npmjs.org/npm/-/

你可能感兴趣的:(Java,Bug,bug)