Stackoverflow exception during maven package

2.2k views Asked by At

Need your help in fixing the maven compilation issue. I am not able to run any maven commands on my project. I am getting the following exception. Maven version used is

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 Command Used

mvn -o package and mvn package

Exception 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)

Please give some idea to fix this issue.

1

There are 1 answers

0
Sergii Pogodin On

Looks like a bug of Maven 3.0.4.

Upgrade to Maven 3.2.1 resolved that for me.