【Maven】Maven错误提示信息:Thepackagingforthisprojectdidnotassignafiletothebuildartifact

原创
小哥 3年前 (2022-11-07) 阅读数 35 #大杂烩

【Maven】Maven报错:The packaging for this project did not assign a file to the build artifact

问题描述

打包书面项目并找出maven报告以下错误:

The packaging for this project did not assign a file to the build artifact

问题发生

我想用maven编写书面项目jar打包,我将操作打包如下: 使用plugins下的install:install 要执行,结果就是上面的错误。

问题解决

我在这里使用它。plubins下的install 为了实现包装操作, 正确的方法应该是使用lifecyce下的install实施包装操作

在这个实现之后,不会报告任何错误,并且项目已经成功打包,如下所示

版权声明

所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除

热门