0

Groovy プロジェクトで未解決の依存関係と Java ヒープ スペースを解決する方法..MAVEN_OPTS を -Xmx1024m として提供しても、ヒープ スペースの問題が発生します..誰かがこれを解決するのを手伝ってくれることを願っています。

Intellij IDEA、maven 2.2.1、Groovy を使用しています

==== mavenCentral: tried

      http://repo1.maven.org/maven2/javax/security/jacc/1.0/jacc-1.0.pom

      -- artifact javax.security#jacc;1.0!jacc.jar:

      http://repo1.maven.org/maven2/javax/security/jacc/1.0/jacc-1.0.jar

        module not found: org.hibernate#hibernate-cglib-repack;2.1_3

    ==== grailsPlugins: tried

      -- artifact org.hibernate#hibernate-cglib-repack;2.1_3!hibernate-cglib-repack.jar:

      C:\Documents and Settings\user\code base\trunk\war/lib/hibernate-cglib-repack-2.1_3.jar

      C:\Documents and Settings\user\code base\war\plugins\.svn/lib/hibernate-cglib-repack-2.1_3.jar

      C:\Documents and Settings\user\code base\trunk\war\plugins\hibernate-1.3.1/lib/hibernate-cglib-repack-2.1_3.jar

      C:\Documents and Settings\user\code base\trunk\war\plugins\jdbc-pool-0.1/lib/hibernate-cglib-repack-2.1_3.jar

      C:\Documents and Settings\user\code base\trunk\war\plugins\tomcat-1.3.2/lib/hibernate-cglib-repack-2.1_3.jar

    ==== grailsCentral: tried

      -- artifact org.hibernate#hibernate-cglib-repack;2.1_3!hibernate-cglib-repack.jar:

      http://svn.codehaus.org/grails-plugins/grails-hibernate-cglib-repack/tags/RELEASE_2_1_3/grails-hibernate-cglib-repack-2.1_3.jar

    ==== grailsCore: tried

      -- artifact org.hibernate#hibernate-cglib-repack;2.1_3!hibernate-cglib-repack.jar:

      http://svn.codehaus.org/grails/trunk/grails-plugins/grails-hibernate-cglib-repack/tags/RELEASE_2_1_3/grails-hibernate-cglib-repack-2.1_3.jar

    ==== localMavenResolver: tried

      C:\Documents and Settings\user/.m2/repository/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.pom

      -- artifact org.hibernate#hibernate-cglib-repack;2.1_3!hibernate-cglib-repack.jar:

      C:\Documents and Settings\user/.m2/repository/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.jar

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.pom

      -- artifact org.hibernate#hibernate-cglib-repack;2.1_3!hibernate-cglib-repack.jar:

      http://repo1.maven.org/maven2/org/hibernate/hibernate-cglib-repack/2.1_3/hibernate-cglib-repack-2.1_3.jar

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: javax.security#jaas;1.0.01: not found

        :: javax.security#jacc;1.0: not found

        :: org.hibernate#hibernate-cglib-repack;2.1_3: not found

        ::::::::::::::::::::::::::::::::::::::::::::::


     [copy] Copied 3 empty directories to 2 empty directories under C:\Documents and Settings\user\code base\trunk\war\target\resources
: java.lang.OutOfMemoryError: Java heap space
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    at _GrailsCompile$_run_closure4_closure10.doCall(_GrailsCompile.groovy:118)
    at _GrailsCompile$_run_closure4_closure10.doCall(_GrailsCompile.groovy)
    at _GrailsSettings$_run_closure10.doCall(_GrailsSettings.groovy:282)
    at _GrailsSettings$_run_closure10.call(_GrailsSettings.groovy)
    at _GrailsCompile$_run_closure4.doCall(_GrailsCompile.groovy:105)
    at _GrailsCompile$_run_closure3.doCall(_GrailsCompile.groovy:68)
4

1 に答える 1

1

トレースを見ると、メモリの問題は Maven が原因ではなく、「標準」のグルーヴィーなコードの実行中に発生しているようです。Groovy を上げてみてXmx、何が起こるか見てみましょう。

于 2013-09-18T07:47:09.283 に答える