2016-10-08 9 views
0

MahoutをUbuntu16.04にインストールしようとしています。 Maven 3.3.9とSubversion 1.9.3を正常にインストールしてください。新象使いとMavenし、私はテストをスキップして、ちょうどここで目標org.apache.maven.pluginsを実行できませんでした:maven-surefire-plugin:2.16:プロジェクトのテスト(default-test)mahout-math:テストの失敗があります

mvn -DskipTests 

を使用する必要がある場合、私は知らない私が得たエラーです:

によって引き起こさ
[INFO] Mahout Build Tools ................................. SUCCESS [ 6.621 s] 
[INFO] Apache Mahout ...................................... SUCCESS [ 1.164 s] 
[INFO] Mahout Math ........................................ FAILURE [03:35 min] 
[INFO] Mahout MapReduce Legacy ............................ SKIPPED 
[INFO] Mahout Integration ................................. SKIPPED 
[INFO] Mahout Examples .................................... SKIPPED 
[INFO] Mahout Release Package ............................. SKIPPED 
[INFO] Mahout Math/Scala wrappers ......................... SKIPPED 
[INFO] Mahout Spark bindings .............................. SKIPPED 
[INFO] Mahout Spark bindings shell ........................ SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 03:44 min 
[INFO] Finished at: 2016-10-07T19:05:02-07:00 
[INFO] Final Memory: 33M/134M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven- 
surefire-plugin:2.16:test (default-test) on project mahout-math: There are test failures. 
[ERROR] 
[ERROR] Please refer to/home/flora/.linuxbrew/Cellar/mahout/trunk/math/target/surefire-reports 
for the individual test results. 
[ERROR] -> [Help 1] 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project mahout-math: There are test failures. 

Please refer to /home/flora/.linuxbrew/Cellar/mahout/trunk/math/target/surefire-reports for the individual test results. 
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) 
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) 
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) 
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) 
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) 
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) 
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) 
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) 
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
at java.lang.reflect.Method.invoke(Method.java:498) 
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 

:org.apache.mavenが。 plugin.MojoFailureException:テストに失敗しました。私はMavenの3.3.9使用しますが、私はちょうど「MVN -DskipTests」を使用することはできません、それが原因で、ライフサイクル・フェーズや目標を欠いていると失敗します

Please refer to /home/flora/.linuxbrew/Cellar/mahout/trunk/math/target/surefire-reports for the individual test results. 
at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:82) 
at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:190) 
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:852) 
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:720) 
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) 
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 
... 20 more 
[ERROR] 
[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 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :mahout-math 
+0

テストの失敗を持つチェックアウトソースのバージョン...あなたは、あなたがこれを使用したい場合は...あなたはもちろん、 '-DskipTests'を使用して、失敗のテストをスキップすることができ決めなければなりませんか? – khmarbaise

答えて

0

。ここにエラーメッセージが表示されます:

ユニットテストの失敗を無視するには、2つの方法があります。例えば相をインストール使用:

method 1: mvn -DskipTests install 

method 2: mvn -Dmaven.test.skip=true install 

2つの方法の間の違いは、前者は、ユニットテストをコンパイルし、後者ではないということであるので、後者は前者ができず、失敗をコンパイルスキップすることができます。

Maven Surefire Plugin: Skipping Tests

関連する問題