我正在尝试使用Maven(neo4j的批量导入程序)安装插件。使用
mvn clean compile assembly:single
给我一个错误,指出无法创建目录。我改成了:
sudo mvn clean compile package assembly:single
它似乎有效,直到构建失败,因为以下测试:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.798s
[INFO] Finished at: Fri Mar 29 16:17:14 EDT 2013
[INFO] Final Memory: 22M/949M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project batch-import: There are test failures.
[ERROR]
[ERROR] Please refer to /u/omusayev/batch-import/batch-import/target/surefire-reports for the individual test results.
[ERROR] -> [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
之前从未使用过Maven,这是非常神秘的。有没有人知道这些可能意味着什么,以及我如何解决这个问题?如果我可以提供更多信息,请询问。
谢谢。
答案 0 :(得分:2)
你没有实际的失败测试(在你粘贴的片段之上),但我猜测测试中的一些奇怪并不重要 - 试试这个:
sudo mvn clean compile package assembly:single -Dmaven.test.skip=true