在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
一般这一步即可解决
如果不可以可以修改一下参数


本人拙见希望可以帮助到您!!!
在Idea中执行maveninstall时遇到编译错误,提示maven-resources-plugin插件声明重复和内存溢出问题。解决方法包括检查并调整JDK版本,以及优化Idea的内存设置,如增加-Xms,-Xmx和-XX:MaxMetaspaceSize等参数。若问题依旧,可能需要进一步修改项目配置。
7043

被折叠的 条评论
为什么被折叠?



