maven-compiler-plugin:3.5.2 or one of its dependencies could not be resolved: Failure to find org.ap

1.   背景

    为了解决Eclipse JRE System Library [J2SE-1.5]问题(改build path Jre版本后, 再打开eclipse 又变为1.5了), pom.xml加了

     </plugins><plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.2</version>
                <configuration>
                   <source>1.8</source>
                   <target>1.8</target>
                </configuration>
        </plugin> </plugins>

maven->update project 出下面错误:

The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:3.5.2 is missing, no dependency information available

[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.5.2 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-compiler-plugin:jar:3.5.2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]



2.  解决办法

==================


2.1 删除XXX\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\  下文件夹

    xxx 可以查找  window->preferences->Maven->user settings

     如果删不了,关闭eclipse (打开eclipse 时候 maven 更新)

2.2 右键项目 maven->update project  

  勾上 force update of snapshots/releases

  会重新下载maven plugin      .m2\repository\org\apache\maven\plugins\maven-resources-plugin\3.5.2







评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值