0

我正在尝试使用此命令构建 mahout sudo mvn -DskipTests install -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

我该如何解决它!?

4

2 回答 2

1

打开 zip 文件时出错 -> [帮助 1]

您可能有一个损坏的下载。清除所有关联的缓存并重mvn试。

于 2013-09-01T08:29:37.203 回答
0

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

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

然后,再试一次 sudo mvn -DskipTests install -e

它有效;)

于 2013-09-01T10:31:09.647 回答