如果MAVEN报内存溢出的错:java.lang.OutOfMemoryError: Java heap space 可以设一下环境变量 export MAVEN_OPTS=‘-Xms256m -Xmx1024m’