关于POM.XML和MAVEN的java.lang.StackOverflowError

时间:2018-05-08 09:20:46

标签: spring maven pom.xml

在我的项目中,我执行了" mvn clean"然后它出错了。

Exception in thread "main" java.lang.StackOverflowError
        at java.util.Hashtable.getIterator(Hashtable.java:610)
        at java.util.Hashtable.access$100(Hashtable.java:131)
        at java.util.Hashtable$EntrySet.iterator(Hashtable.java:688)
        at java.util.Collections$SynchronizedCollection.iterator(Collections.java:2031)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$MapField.doInterpolate(StringSearchModelInterpolator.java:435)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheField.interpolate(StringSearchModelInterpolator.java:301)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction$CacheItem.interpolate(StringSearchModelInterpolator.java:274)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.traverseObjectWithParents(StringSearchModelInterpolator.java:158)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.traverseObjectWithParents(StringSearchModelInterpolator.java:160)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator$InterpolateObjectAction.run(StringSearchModelInterpolator.java:132)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator.interpolateObject(StringSearchModelInterpolator.java:78)
        at org.apache.maven.model.interpolation.StringSearchModelInterpolator.interpolateModel(StringSearchModelInterpolator.java:61)
        at org.apache.maven.model.building.DefaultModelBuilder.interpolateModel(DefaultModelBuilder.java:772)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:387)
        at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:1279)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:457)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:423)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:413)
        at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:1279)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:457)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:423)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:413)

在我的pom.xml文件中,"下方有一条红色波浪线。

1 个答案:

答案 0 :(得分:-1)

在pom.xml中导入新文件。此文件依赖于原始项目并导致无限循环。