构建mahout时出错

时间:2013-09-01 08:27:26

标签: maven mahout

我正在尝试使用此命令构建mahout sudo mvn -DskipTests安装-e

它构建直到exmaples但是给了我这个错误!

[INFO] --- maven-assembly-plugin:2.4:single (job) @ mahout-examples ---
[INFO] Reading assembly descriptor: src/main/assembly/job.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Mahout Build Tools ................................ SUCCESS [2.496s]
[INFO] Apache Mahout ..................................... SUCCESS [0.663s]
[INFO] Mahout Math ....................................... SUCCESS [20.758s]
[INFO] Mahout Core ....................................... SUCCESS [18.089s]
[INFO] Mahout Integration ................................ SUCCESS [2.467s]
[INFO] Mahout Examples ................................... FAILURE [3.593s]
[INFO] Mahout Release Package ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.965s
[INFO] Finished at: Sun Sep 01 12:52:34 IRDT 2013
[INFO] Final Memory: 36M/374M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (job) on project mahout-examples: Failed to create assembly: Error creating assembly archive job: error in opening zip file -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (job) on project mahout-examples: Failed to create assembly: Error creating assembly archive job: error in opening zip file

我该如何解决它??

2 个答案:

答案 0 :(得分:1)

  打开zip文件时出现

错误 - > [帮助1]

您的下载可能已损坏。清除与mvn关联的所有缓存,然后重试。

答案 1 :(得分:0)

正如hexafraction所说,我必须清除与mvn相关的任何缓存 然后我删除了我的用户中的./m2/repository文件夹。 因为我用sudo运行命令,然后我首先使用这一步:

sudo -i    // login as root
cd ./.m2/
rm -r repository/
exit

然后,再次使用sudo mvn -DskipTests install -e

它有效;)