“未知"从Spring 1.5.21升级到2.1.5时pom.xml中出现错误 [英] "unknown" error in pom.xml when I upgrade from Spring 1.5.21 to 2.1.5
问题描述
我正在使用Eclipse STS 3.9.7
I'm using Eclipse STS 3.9.7
Spring版本的开关会产生其他我能够解决的错误,但不是这个错误:pom.xml的第一行标记为未知"错误.
The switch of Spring version creates other errors I'm able to solve, but not this one : first line of the pom.xml is tagged with "unkown" error.
Maven构建(全新安装)运行正常,没有错误,没有警告.
Maven build (clean install) is running fine with no error no warnings.
到目前为止,我已经尝试过:
What I've tried so far :
- Alt + F5更新项目pom
- 清理+构建eclipse
- 关闭/重新打开项目
- 关闭项目/删除projet导入项目
- 关闭/重新打开STS
- 删除项目和所有Eclipse元数据,然后重新导入为maven项目.
当我从2.1.5切换回1.5.21时,错误立即消失.
When I switch back from 2.1.5 to 1.5.21, the error disappears instantly.
推荐答案
环顾四周,这是解决方案:
After looking around, this is the solution :
这是2天前提交的Eclipse(或Maven-jar-plugin)错误: https://bugs.eclipse.org/bugs/show_bug.cgi?id=547340
It's an eclipse (or maven-jar-plugin) bug filed 2 days ago : https://bugs.eclipse.org/bugs/show_bug.cgi?id=547340
要解决此问题,请通过属性将maven-jar-plugin版本从3.1.2降级到3.1.1:
To solve the problem, downgrade maven-jar-plugin version from 3.1.2 to 3.1.1 through properties :
<properties>
(...)
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
</properties>
这篇关于“未知"从Spring 1.5.21升级到2.1.5时pom.xml中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!