天天看點

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.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: : min
[INFO] Finished at: --T13::+:
[INFO] Final Memory: M/M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin::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 ] 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: : min
[INFO] Finished at: --T14::+:
[INFO] Final Memory: M/M
[INFO] ------------------------------------------------------------------------
           

繼續閱讀