加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

'artifactId' is missing. @ line 2, column 10

发布时间:2020-12-14 15:29:43 所属栏目:百科 来源:网络整理
导读:错误背景: 本地能够正常启动和调试应用,就是打包构建失败。 详细错误信息如下: [ERROR] [ERROR] Some problems were encountered while processing the POMs:[FATAL] ' artifactId ' is missing. @ line 2 ,column 109 [WARNING] build.plugins.plugin.(gro

错误背景:
本地能够正常启动和调试应用,就是打包构建失败。

详细错误信息如下:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] 'artifactId' is missing. @ line 2,column 109
[WARNING] build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.springframework.boot:spring-boot-maven-plugin @ line 90,1)">21dependencies.dependency.scopefor org.springframework.boot:spring-boot-devtools:jar must be one of [provided,compile,runtime,test,system] but is true'. @ line 253,1)">11
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project cn.challengertech.blog:[unknown-artifact-id]:[unknown-version] (/home/test/blog/blog-web/pom.xml) has  error
[ERROR]     
[ERROR] 
[ERROR] To see the full stack trace of the errors,re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X  to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions,please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

?

最关键的信息如下:

[ERROR]     109

错误原因:
子pom文件不经意间操作不小心去除了artifactId,导致项目构建打包时找不到对应的子模块,从而无法构建,导致报错。

解决方式:
加上即可,如下图所示:

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读