编译flink1.11版本问题总结

1. 解决npm问题

1.1 报错如下

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm install) on project flink-runtime-web_2.11: Failed to run task: 'npm ci --cache-max=0 --no-save --registry=https://registry.npm.taobao.org' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn -rf :flink-runtime-web_2.11

1.2 解决方法

mac安装npm

brew install node

mac安装angular cli

npm install -g @angular/cli 

打开flink-runtime-web的pom文件,添加node和npm镜像


   com.github.eirslett
   frontend-maven-plugin
   1.6
   
      
         install node and npm
         
            install-node-and-npm
         
         
            https://registry.npm.taobao.org/dist/
            https://registry.npmjs.org/npm/-/
            v10.9.0
         
      
      
         npm install
         
            npm
         
         
            ci --cache-max=0 --no-save
            
               true
            
         
      
      
         npm run build
         
            npm
         
         
            run build
         
      
   
   
      web-dashboard
   

重新编译,成功! 

你可能感兴趣的:(flink)