欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 建筑 > Plugin ‘org.apache.maven.plugins:maven-compiler-plugin:‘ not found报错

Plugin ‘org.apache.maven.plugins:maven-compiler-plugin:‘ not found报错

2025/4/28 15:11:14 来源:https://blog.csdn.net/qq_52445173/article/details/143963210  浏览:    关键词:Plugin ‘org.apache.maven.plugins:maven-compiler-plugin:‘ not found报错

场景:处理完冲突报错

代码:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>

无论如何更新maven都报错

org.jboss:jboss-parent:pom:39 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.jboss:jboss-parent:pom:39 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: Connect timed out

Try to run Maven import with -U flag (force update snapshots)

检查配置文件,都是正确的

解决:去本地仓库找到并查看对应的版本,然后加上对应版本,例如:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<version>3.1</version>
</configuration>
</plugin>

然后更新maven,不报错了,这时候删除这个版本号也不会报错了

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词