mavenテストを実行すると、java.lang.OutOfMemoryErrorが発生します。私はそれを解決のためにグーグルで試しましたexport MAVEN_OPTS=-Xmx1024mが、うまくいきませんでした。誰もがこの問題の他の解決策を知っていますが、私はMaven 3.0を使用しています
前もって感謝します
「mvn test -e」を実行するときに、ここにエラーメッセージを貼り付けます
失敗したテスト:
警告(junit.framework.TestSuite $ 1)
testDefaultPigJob_1(com.snda.dw.pig.impl.DefaultPigJobLocalTest)
testDefaultPigJob_2(com.snda.dw.pig.impl.DefaultPigJobLocalTest)
テストの実行:11、失敗:3、エラー:0、スキップ:0
10/11/01 13:37:18 INFO executionengine.HExecutionEngine:hadoop fiへの接続
ファイルシステム:file:///
[情報] ----------------------------------------------- -------------------------
[INFO]ビルド失敗
[情報] ----------------------------------------------- -------------------------
[情報]合計時間:30.063秒
[INFO]終了日:2010年11月1日13:37:18 PDT 2010
[情報]最終メモリ:3M / 6M
[情報] ----------------------------------------------- -------------------------
[エラー]目標org.apache.maven.plugins:maven-surefire-plugin:2を実行できませんでした。
プロジェクトdw.pigの5:test(default-test):テストの失敗があります。
[エラー]
[エラー] E:\ Code \ Java \ workspace \ dw.pig \ target \ surefire-reports foを参照してください
r個々のテスト結果。
[エラー]-> [ヘルプ1]
org.apache.maven.lifecycle.LifecycleExecutionException:ゴールoの実行に失敗しました
プロジェクトのrg.apache.maven.plugins:maven-surefire-plugin:2.5:test(default-test)
dw.pig:テストの失敗があります。
E:\ Code \ Java \ workspace \ dw.pig \ target \ surefire-reportsを参照してください。
個別のテスト結果。
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:199)
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:148)
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:140)
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(ライフサイクルモジュールビルダー.java:84)
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(ライフサイクルモジュールビルダー.java:59)
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)で
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)で
org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)で
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)で
org.apache.maven.cli.MavenCli.main(MavenCli.java:132)で
sun.reflect.NativeMethodAccessorImpl.invoke0(ネイティブメソッド)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl。
java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)で
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
原因:org.apache.maven.plugin.MojoFailureException:テストに失敗しました
。
E:\ Code \ Java \ workspace \ dw.pig \ target \ surefire-reportsを参照してください。
個別のテスト結果。
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi
n.java:629)
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:107)
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:195)
...もっと19
[エラー]
[エラー] -Xスイッチを使用してMavenを再実行し、完全なデバッグログを有効にします。
[エラー]
[エラー]エラーと考えられる解決策の詳細については、
d次の記事:
[エラー] [ヘルプ1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc