Apache zeppelin build process failure in zeppelin-web with bower

匿名 (未验证) 提交于 2019-12-03 08:59:04

问题:

I am trying to build zeppelin locally with windows and babun/cygwin. This site got me headed in the right direction, but I run into the following error when the build gets to Web Application:

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:bower (bower install) on project zeppelin-web: Failed to run task: 'bower --allow-root install' failed. (error code 8) -> [Help 1] 

I can go into the zeppelin-web directory and run bower install successfully, but I'm not sure where to go from here? If I try to do mvn install -DskipTests, it tries to run the bower command again.

If I try to "move on" and attempt to build under ../zeppelin-server it will say that it can't find the zeppelin-web dependency.

I think I would like to run bower install manually, as suggested by the site above, but I'm not sure where to go from there? Is it possible to pick up mvn where it left off? Any help or guidance would be greatly appreciated.

回答1:

I ran into the same problem. First try to go to the zeppeling-web component and run there mvn package -DskipTests. It should give you more details about what is failing:

cd zeppelin-web mvn package -DskipTests 

In my case it was a problem with git proxies, since I am working in a corporate environment. At the console, issuing the command:

git config --global url."https://".insteadOf git:// 

did the trick.



回答2:

You have to run the build command with sudo



回答3:

This worked for me: run the following as a non-root user, (replace <goals> with your -P and -D flags, or remove for standalone install):

sudo env "PATH=$PATH" mvn clean install <goals> -DskipTests sudo env "PATH=$PATH" mvn clean install <goals> -DskipTests -rf :zeppelin-web 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!