We can not build our IvyProject with maven and the ivy project-build-plugin. If we execute mvn compile in our ivy project the follwoing StackOverflowError happens:

[ERROR] Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:7.0.4:compileProject (default-compileProject) on project astecs_core: Failed to compile project 'c:\...'.: InvocationTargetException: StackOverflowError -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.axonivy.ivy.ci:project-build-plugin:7.0.4:compileProject (default-compileProject) on project astecs_core: Failed to compile project 'c:\...\...'.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
  ......
Caused by: java.lang.StackOverflowError
    at org.eclipse.jdt.internal.compiler.lookup.TypeSystem$HashedParameterizedTypes.get (TypeSystem.java:86)
    at org.eclipse.jdt.internal.compiler.lookup.AnnotatableTypeSystem.getParameterizedType (AnnotatableTypeSystem.java:107)
    at org.eclipse.jdt.internal.compiler.lookup.AnnotatableTypeSystem.getParameterizedType (AnnotatableTypeSystem.java:124)
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createParameterizedType (LookupEnvironment.java:945)
    at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.convertToParameterizedType (LookupEnvironment.java:486)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.enclosingReceiverType (Scope.java:1190)
    at org.eclipse.jdt.internal.compiler.lookup.Scope.getBinding (Scope.java:2129)
    at org.eclipse.jdt.internal.compiler.ast.SingleNameReference.resolveType (SingleNameReference.java:985)
    at org.eclipse.jdt.internal.compiler.ast.MemberValuePair.resolveTypeExpecting (MemberValuePair.java:89)
    at org.eclipse.jdt.internal.compiler.ast.Annotation.resolveType (Annotation.java:830)
    at org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations (ASTNode.java:900)
    at org.eclipse.jdt.internal.compiler.ast.ASTNode.resolveAnnotations (ASTNode.java:770)
    at org.eclipse.jdt.internal.compiler.lookup.FieldBinding.getAnnotationTagBits (FieldBinding.java:286)
    ...

asked 04.09.2019 at 05:43

josef_koupal's gravatar image

josef_koupal
(suspended)
accept rate: 25%

edited 06.09.2019 at 08:51

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338


This can happen if there are very complex java classes (Same exception happens also with > 7.0) You have to increase the java stack size first on the command line (Default is 1M):

Linux: export MAVEN_OPTS="-Xss2M"

Windows: set MAVEN_OPTS="-Xss2M"

link

answered 06.09.2019 at 08:42

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

edited 06.09.2019 at 08:53

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22
×9
×7
×5

Asked: 04.09.2019 at 05:43

Seen: 9,192 times

Last updated: 06.09.2019 at 08:53