zeppelin打包失败 'Failed to execute goal com.github.eirslett:frontend-maven-plugin'
zeppelin 官网提供的binary包不支持yarn,需要自己打包。问题zeppelin打包:~/apache-maven-3.3.1/bin/mvn clean install -DskipTests一直build failure:[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.2
·
zeppelin 官网提供的binary包不支持yarn,需要自己打包。
问题
zeppelin打包: ~/apache-maven-3.3.1/bin/mvn clean install -DskipTests
一直build failure:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.25:grunt (grunt build) on project zeppelin-web: Failed to run task: ‘grunt build –no-color’ failed. (error code 3) -> [Help 1]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:56 min
[INFO] Finished at: 2016-08-18T13:45:01+08:00
[INFO] Final Memory: 37M/1931M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.25:grunt (grunt build) on project zeppelin-web: Failed to run task: 'grunt build --no-color' failed. (error code 3) -> [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
修复方法
修改 zeppelin-0.6.1/zeppelin-web/pom.xml文件:
123 <execution>
124 <id>grunt build</id>
126 <goals>
127 <goal>grunt</goal>
128 </goals>
129 <configuration>
130 <arguments>build --force</arguments> <!--修改 build 为 build --force -->
131 </configuration>
132 </execution>
重新执行打包命令,问题修复:
[INFO]
[INFO] --- maven-checkstyle-plugin:2.13:checkstyle-aggregate (checkstyle-gen-html-report) @ zeppelin-web ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:54 min
[INFO] Finished at: 2016-08-18T14:07:17+08:00
[INFO] Final Memory: 36M/1931M
[INFO] ------------------------------------------------------------------------更多推荐
所有评论(0)