前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >maven:升级到java 8 导致的插件报错 maven-plugin-plugin:3.2:descriptor

maven:升级到java 8 导致的插件报错 maven-plugin-plugin:3.2:descriptor

作者头像
10km
发布2019-05-25 21:41:23
3.5K0
发布2019-05-25 21:41:23
举报
文章被收录于专栏:10km的专栏10km的专栏

版权声明:本文为博主原创文章,转载请注明源地址。 /developer/article/1433540

最近将项目的代码JDK版本基准从jdk1.7升级到jdk1.8,在升级的过程出了一堆问题。

在重新用java 8编译一个maven插件的时候报错了:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (default-descriptor) on project swift2thrift-maven-plugin: Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor failed: 52264

妈蛋,我的项目代码啥都木有改,只是换到java 8编译呀。

google上搜索一下,很快找到答案,确实与java 版本有关:升级到java 8后相应的maven插件也要升级

解决办法如下图描述,只要在pom.xml中显式的指定maven-plugin-plugin的版本号就可以了(上面的错误描述就可以看出,原本我的pom.xml中没有maven-plugin-plugin的版本号,所以使用的是默认的版本3.2):

参见 maven-plugin-plugin:descriptor goal fails at the and of file

本文参与?腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018年08月15日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体同步曝光计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com