Eclipse中 maven 工程 pom 文件 <execution> 出错

Eclipse中 maven 工程 pom 文件 <execution> 报错
Eclipse中 maven 工程 pom 文件 <execution> 报错
解决: 在<plugins>  外层  添加  <pluginManagement>

<pluginManagement>

<plugins>
..........
</plugins>
    
</pluginManagement>
 
 
<p style="margin-top: 0px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(73, 73, 73); font-family: simsun; font-size: 14px; background-color: rgb(252, 211, 221);">后记:</p><p style="margin-top: 0px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(73, 73, 73); font-family: simsun; font-size: 14px; background-color: rgb(252, 211, 221);">这样改之后,虽然pom中没有红叉的错误提示了,但是有些插件不能起作用了,比如jaxb2-<span style="word-wrap: normal; word-break: normal;">maven</span>-<span style="word-wrap: normal; word-break: normal;">plugin这个插件用于根据xml动态生成java类,加了pluginManagement后,该插件不起作用,找不到动态生成的类。</span></p><p style="margin-top: 0px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(73, 73, 73); font-family: simsun; font-size: 14px; background-color: rgb(252, 211, 221);"><span style="word-wrap: normal; word-break: normal;">
</span></p><p style="margin-top: 0px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(73, 73, 73); font-family: simsun; font-size: 14px; background-color: rgb(252, 211, 221);">所以,最终忽略eclipse对pom的excusion的红叉错误提示,也能maven install成功。</p>
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值