maven--pom.xml错误--CoreException: Could not get the value for parameter compilerId
来源:互联网 发布:!号c语言中是什么意思 编辑:程序博客网 时间:2024/06/06 12:38
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.google.code.findbugs:jsr305:jar:2.0.1, org.codehaus.plexus:plexus-compiler-api:jar:2.2: Failure to transfer com.google.code.findbugs:jsr305:jar:2.0.1 from http://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. Original error: Could not transfer artifact com.google.code.findbugs:jsr305:jar:2.0.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.
如何看到详细的错误信息?
过程如下(这个问题不容易复现,应该是属于偶然性的因网络引起的问题):
双击打开有错误的pom.xml文件,Overview视图,如下图红框标识的位置就会显示错误信息,
鼠标左键单击错误信息就会显示出下图所示的详细信息,也可能是后边标题为“Problems in the POM”对话框显示的详细信息
点击如下图所示的链接可以定位到POM文件对应的位置
网上有资料说是在“<build>”和“<plugins>”标签之间添加“<pluginManagement>”,我加了也不起作用,但也没有什么负作用
只怪自己英文太差,认真分析理解错误信息的意思,应该就是缺少对应的JAR文件,去配置的Maven本地“Repo”目录下搜索
很明显,缺少“plexus-compiler-api-2.2.jar”文件,由于网络原因下载失败了。
返回上一级目录,删除“2.2”文件夹。
修改“POM.xml”,随便在空白处添加或删除一个空格,保存文件,触发更新事件!
可能由于相同的原因,导致多个包下载失败或缺失,都使用相同的方法解决即可。
如果你不是这个错误,以下链接或许可以帮到你:
http://ljhzzyx.blog.163.com/blog/static/383803122013440345857/
http://liwenqiu.me/blog/2012/12/19/maven-lifecycle-mapping-not-converted/
http://wiki.eclipse.org/M2E_plugin_execution_not_covered
- maven--pom.xml错误--CoreException: Could not get the value for parameter compilerId
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
- CoreException: Could not get the value for parameter compilerId for plugin execution default-compil
- Could Not Get the Value for Parameter compilerId for Plugin Execution
- Could not get the value for parameter compilerId for plugin execution default-compile
- Could Not Get the Value for Parameter compilerId for Plugin Execution
- Could Not Get the Value for Parameter compilerId for Plugin Execution
- Maven: Could not get the value for parameter encoding for plugin execution default-resources Plugin
- Maven: Could not get the value for parameter encoding for plugin execution default-resources Plugin
- 【Maven in action】解决办法:Could not get the value for parameter encoding for plugin execution...
- Eclipse下导入SpringCloud项目maven加载jar包:Could not get the value for parameter encoding for plugin executi
- Could not get the value for parameter encoding for plugin execution default-resources Plugin org.apa
- Could not get the value for parameter encoding for plugin execution default-resources Plugin
- could not get the value for parameter encoding forplugin execution default resources 处理
- 【xcode】错误之Could not launch "" failed to get the task for process
- 41.【xcode】错误之Could not launch "" failed to get the task for process
- 每日一练20171031
- 常见问题_2
- python3抓取百度图片
- POJ 1986 Distance Queries (Tarjan-LCA算法)(带权值)
- Logistic Regression的思考与整理
- maven--pom.xml错误--CoreException: Could not get the value for parameter compilerId
- [bzoj1650][Usaco2006 Dec][二分]跳石子
- 使用Nginx+Lua(OpenResty)开发高性能Web应用
- js 添加事件 attachEvent 和 addEventListener 的用法
- UVa1025 A Spy in the Metro(dp)
- 连续自然数和(尺取法)
- jquery按键监听(移动div)
- 《上瘾:让用户养成使用习惯的四大产品逻辑》读书笔记
- 最近搞Hadoop集群迁移踩的坑杂记