遇到问题的情景:
在使用sonarQube对idea的代码进行Analize的时候,控制台出现的Failure to find org.eclipse.m2e:lifecycle-mapping:pom:1.0.0 in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced。
解决方式:
- 先下载dummy-lifecycle-mapping-plugin,我下载的是zip文件。
下载地址:https://github.com/mfriedenhagen/dummy-lifecycle-mapping-plugin - 解压zip文件,进入pom.xml文件所在目录,执行mvn clean install命令。
- idea重新编译即可。