在idea中
maven install
出现一下错误
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project bj-applet-api: Fatal error compiling
build.pluginManagement.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-resources-plugin @ com.byx.base:byx-base-parent:1.5.0-SNAPSHOT, xxx\com\byx\base\byx-base-parent\1.5.0-SNAPSHOT\byx-base-parent-1.5.0-SNAPSHOT.pom, line 304, column 25
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
网上看了一堆说是jdk 版本不堆报错
Fatal error compiling: java.lang.OutOfMemoryError 后来细看是项目内存溢出
最后配置了Idea 的加载内存
配置内存
-Xms258m -Xmx1024m -XX:MaxMetaspaceSize=256m
一般这一步即可解决
如果不可以可以修改一下参数
本人拙见希望可以帮助到您!!!