Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven Groovy中如何解决未解析依赖项异常_Maven_Grails_Heap Memory - Fatal编程技术网

Maven Groovy中如何解决未解析依赖项异常

Maven Groovy中如何解决未解析依赖项异常,maven,grails,heap-memory,Maven,Grails,Heap Memory,如何解决groovy项目中未解析的依赖项和java堆空间。。 即使提供MAVEN_选项为-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#

如何解决groovy项目中未解析的依赖项和java堆空间。。 即使提供MAVEN_选项为-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)

查看您的跟踪,看起来内存问题不是由Maven引起的,而是在执行一些“标准”groovy代码时引起的。尝试提高Groovy的
Xmx
,看看会发生什么。

我通过添加“JAVA_OPTS-Xmx512M”环境变量来提高Groovy的Xmx。。堆空间问题仍然存在..我在runner的运行配置中添加了-Xmx512M作为Vm参数,然后堆问题得到解决,依赖性问题也得到解决。。现在获取[ERROR]生成错误[INFO]无法启动Grails嵌入错误:java.lang.reflect.InvocationTargetException C:\Documents(访问被拒绝)我认为问题是因为文件路径“C:/Documents and Settings”中的空间。你知道如何解决这个问题吗?这是一个完全不同的问题,但看起来你在将
C:\Documents and Settings
拆分为
C:\Documents
时遇到了问题,
设置
。您的路径被错误地转义到某个地方。