maven包期间的Stackoverflow异常

时间:2013-12-04 18:14:13

标签: eclipse maven maven-2 maven-3 sonatype

需要您的帮助来解决maven编译问题。我无法在我的项目上运行任何maven命令。我收到以下异常。使用的Maven版本是

Maven home: C:\Program Files (x86)\maven\apache-maven-3.0.4\bin\..
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_09\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

使用Maven命令

mvn -o package and mvn package

异常Stacktrace: -

Exception in thread "main" java.lang.StackOverflowError
at org.sonatype.aether.util.graph.PathRecordingDependencyVisitor.visitEnter(PathRecordingDependencyVisitor.java:88)
    at org.sonatype.aether.impl.internal.GraphEdge.accept(GraphEdge.java:198)
at org.sonatype.aether.impl.internal.GraphEdge.accept(GraphEdge.java:202)
at org.sonatype.aether.impl.internal.GraphEdge.accept(GraphEdge.java:202)

请提出解决此问题的建议。

1 个答案:

答案 0 :(得分:1)

看起来像是Maven 3.0.4的错误。

升级到Maven 3.2.1为我解决了这个问题。