Google took a look at others saying that the stack size is not big enough.
Stack space is used to make recursive calls to methods when pressed into the stack Frame. So when the recursive call is too deep, it is possible to run out of stack Space and burst the StackOverflow error. The size of the Stack space varies with the size of the OS,JVM and environment variables. The default size is generally 512K.
My guess is that one of my project call stacks is too large, and there are some very resource-intensive recursive calls that plug the stack size directly into the storm. So adjust the stack size to 10m.
Export maven_opts= "-xms256m-xmx512m-xss10m"
Re-execute the MVN package
SUCCESS, I hope you meet this problem less detour.
The above is the Linux solution, under Windows The processing method is
Set maven_opts= "-xms256m-xmx512m-xss10m"
Then MVN package
Resolution of the Windows Maven package times wrong problem