CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved

时间:2022-08-31 21:30:14

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-compiler-plugin:jar:3.1 in http://repository.jboss.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced

原因是:本地设置的镜像仓库中没有对应的jar导致的

<mirrors>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
</mirrors>

Maven *仓库地址:

1. http://www.sonatype.org/nexus/

2. http://mvnrepository.com/ (本人推荐仓库)

3. http://repo1.maven.org/maven2

解决方法:

1.找到maven库目录,进入:~\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\3.1

2.若2.7.1目录下只有,"maven-compiler-plugin-3.1.pom.lastUpdated" 则需要到http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.1/,把里面的文件下载下来放到2.7.1,如果该仓库中没有,那么可以去http://search.maven.org/这个地方下载下来,然后放置到对应的本地仓库中

3.删除2.7.1下的maven-compiler-plugin-3.1.pom.lastUpdated文件。

4.项目右键-->maven-->Update Dependencies

如果以上方法还是无法解决该问题:

1.打开settings.xml,尝试换个mirror镜像或者干脆采用默认的仓库,即注释掉

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved

CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved的更多相关文章

  1. Could not calculate build plan &colon;lugin org&period;apache&period;maven&period;plugins&colon;maven-resources-plugin&colon;2&period;6 or one of

    eclipse中新建maven项目,出现 Could not calculate build plan :lugin org.apache.maven.plugins:maven-resources- ...

  2. Could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-resources-plugin&colon;2&period;5

    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of ...

  3. maven install 报错Could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-resources-plugin

    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of ...

  4. Eclipse使用Maven&comma;创建项目出现&colon;Could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-resour

    使用maven创建简单的项目时候经常会遇到 Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resource ...

  5. eclipse导入maven项目时报Could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-resources

    在用Eclipse IDE for Java EE Developers进行maven项目的开发时,报错Could not calculate build plan: Plugin org.apach ...

  6. Could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-war-plugin&colon;2&period;3

    Maven 导入项目时报错: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.3 ...

  7. maven报错【Could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-resources-plugin&colon;2&period;6 or one of】

    [自己的操作] (1)windows -> Preferences -> maven 的settings.xml文件中.m2的位置已经失效,更改正确后尝试 (2)pom.xml还有下面错误 ...

  8. could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-resources-plugin&colon;2&period;5 or one of(maven报错)

    could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of ...

  9. 【maven】ecplise新建maven项目 报错Could not calculate build plan&colon; Plugin org&period;apache&period;maven&period;plugins&colon;maven-resources-plugin

    在ecplise上新建maven项目 报错: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resourc ...

随机推荐

  1. C&num; using的一些事

    一.using释放资源 using不可以释放所有的对象,原因如下: 1.using可以主动释放的对象都需要实现IDisable接口. 2.即使都实现了IDisable接口,也没有必要全部使用using ...

  2. Codeforces 839C Journey【DFS】

    C. Journey time limit per test:2 seconds memory limit per test:256 megabytes input:standard input ou ...

  3. 跨站请求伪造攻击 CSRF

    摘录: 1.跨站点请求伪造 首先,什么是跨站点请求伪造? 跨站点请求伪造-CSRF(Cross Site Request Forgery):是一种网络攻击方式. 说的白话一点就是,别的站点伪造你的请求 ...

  4. 19&period;C&plus;&plus;-&lpar;&equals;&rpar;赋值操作符、智能指针编写&lpar;详解&rpar;

    (=)赋值操作符 编译器为每个类默认重载了(=)赋值操作符 默认的(=)赋值操作符仅完成浅拷贝 默认的赋值操作符和默认的拷贝构造函数有相同的存在意义 (=)赋值操作符注意事项 首先要判断两个操作数是否 ...

  5. Miller-Rabin&comma;Pollard-Rho&lpar;BZOJ3667&rpar;

    裸题直接做就好了. #include <cstdio> #include <cstdlib> #include <algorithm> using namespac ...

  6. 详解BLE连接建立过程

    同一款手机,为什么跟某些设备可以连接成功,而跟另外一些设备又连接不成功?同一个设备,为什么跟某些手机可以建立连接,而跟另外一些手机又无法建立连接?同一个手机,同一个设备,为什么他们两者有时候连起来很快 ...

  7. js MD5加密处理

    关于MD5: MD5.js是通过前台js加密的方式对用户信息,密码等私密信息进行加密处理的工具,也可称为插件. 在本案例中 可以看到MD5共有6种加密方法: 1,  hex_md5(value) 2, ...

  8. koa2入门(2) koa-router 路由处理

    项目地址:https://github.com/caochangkui/demo/tree/koa-test 1. 创建项目 创建目录 koa-test npm init 创建 package.jso ...

  9. java集合之List源码解析

    List是java重要的数据结构之一,我们经常接触到的有ArrayList.Vector和LinkedList三种,他们都继承来自java.util.Collection接口,类图如下 接下来,我们对 ...

  10. file &sol;usr&sol;lib64&sol;mysql&sol;plugin&sol;dialog&period;so from install of Percona-Server-server-56-5&period;6&period;24-rel72&period;2&period;el6&period;x86&lowbar;64 conflicts with file from package mariadb-libs-1&colon;5&period;5&period;60-1&period;el7&lowbar;5&period;x86&lowbar;64

    !!!点下面!!! https://www.cnblogs.com/chuijingjing/p/10005922.html