执行mvn install报错,执行mvn compile正常执行(报错如下图)。


maven2222222222.png

 

fish - Hadooper

赞同来自: @CrazyChao

export MAVEN_OPTS="-Xms256m -Xmx512m -Xss10m",把maven执行时的栈调大些试试(主要是-Xss参数)。

@CrazyChao - 人生不止眼前的苟且,还有诗和远方的田野!^.^

赞同来自:

出现的报错: Exception in thread "main" java.lang.StackOverflowError         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)         at java.io.PrintStream.write(PrintStream.java:451)         at java.io.FilterOutputStream.write(FilterOutputStream.java:77)         at java.io.FilterOutputStream.write(FilterOutputStream.java:125)         at java.io.PrintStream.write(PrintStream.java:480)         at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)         at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)         at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)         at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185)         at java.io.PrintStream.newLine(PrintStream.java:546)         at java.io.PrintStream.println(PrintStream.java:807)         at org.slf4j.impl.SimpleLogger.write(SimpleLogger.java:373)         at org.slf4j.impl.SimpleLogger.log(SimpleLogger.java:368)         at org.slf4j.impl.SimpleLogger.info(SimpleLogger.java:529)         at org.apache.maven.cli.logging.Slf4jLogger.info(Slf4jLogger.java:59)         at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:464)         at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:467)  

wangxiaolei

赞同来自:

settings.xml中配置mirror了吗?

@CrazyChao - 人生不止眼前的苟且,还有诗和远方的田野!^.^

赞同来自:

配置了两个mirror,一个私库,一个阿里云的。

fish - Hadooper

赞同来自:

怎么看起来像是磁盘满了似的。

要回复问题请先登录注册