Error during Maven compilation: java.lang.stackoverflowerror
preface
Most of this error is caused by the java thread stack, but it is not caused by this reason. I don’t know if I’ve heard of [in scala-2.10. X version, when there are more than 22 elements of case class, an error will be reported after compilation]. I really do this because there are more than 130 member variables in a case class, But mine is Scala_ 2.11 so I don’t think the problem is caused by the version. During the experiment, when the membership is limited to about 100, it’s OK. Of course, I’m lazy to disassemble the case class
Online solution (my solution)
Another problem on the Internet is to solve my problem. This method is to add the configuration parameters directly to the POM file
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.4.0</version>
<!-- Add-->
<configuration>
<displayCmd>true</displayCmd>
<jvmArgs>
<jvmArg>-Xss20m</jvmArg>
</jvmArgs>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
Read More:
- [Solved] Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.DataSource>
- Springboot package error: failed to execute goal org.apache.maven.plugins:maven-resources-plugin: 3.2.0…
- [Solved] flink Write Files Error: lang.NoClassDefFoundError: org/apache/flink/api/common/typeinfo/TypeInformation
- Log4j2 reports ERROR StatusLogger Unrecognized format specifier
- [Solved] There are test failures. Please refer to D:\Java_study\springboot\springboot-sugon-3\target\surefire-reports for the individual test results.
- Prompt unknown error in pom.xml of Maven project
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- Gateway Error: Cannot resolve org.springframework.cloud:spring-cloud-starter-gateway:unknown
- IDEA reports an error. Error XXX reports an error. The class cannot be found
- [Maven] Pom.xml error: Cannot detect Web Project version.
- [Solved] Maven log jar package conflict error: Class path contains multiple SLF4J bindings
- [Solved] Spring cloud introduces zuul dependency error
- [Solved] Hadoop error java.lang.nosuchmethoderror
- How to Fix Error when integrating spring cloud openfeign with spring cloud Alibaba
- Unable to start embedded Tomcat [How to Solve]
- SpringCloud: gateway module startup error [How to Solve]
- Spring cloud Eureka error creating bean with name
- [Solved] presto Compile Error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check
- [Solved] java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession