idea maven打包 install 报错The packaging for this project did not assign a file to the build artifact

最新推荐文章于 2022-09-27 11:26:58 发布
最新推荐文章于 2022-09-27 11:26:58 发布 阅读量1.6w

如题,这其实是个低级错误,这个错的意思是,找不到这个插件的包。

原因很简单,不是找不到这个打包插件,而是自己的项目没有从maven仓库里加载这个包到项目里,因此会找不到。

看一下问什么会报这个错:
这里写图片描述
大家都知道,在idea中maven打包操作是点击install,而在maven打包时有两个install的地方如下图:

我们在打包时如果点击了Plugins中的install时,就会报如题错误,其实我们在打包时应该操作Lifecycle下的install,这样项目就会自动去maven仓库下载需要的包,也就不会报错,问题就解决了。
原文地址

idea maven打包 install 报错The packaging for this project did not assign a file to the build artifact 如题,这其实是个低级错误,这个错的意思是,找不到这个插件的包。原因很简单,不是找不到这个打包插件,而是自己的项目没有从maven仓库里加载这个包到项目里,因此会找不到。看一下问什么会报这个错: 大家都知道,在idea中maven打包操作是点击install,而在maven打包时有两个install的地方如下图:我们在打包时如果点击了Plugins中的install时,就会报如题错... [INFO] Reactor Summary for demo 0.0.1-SNAPSHOT: [INFO] [INFO] demo ……………………………………….. FAILURE [18:18 min] [INFO] admin-service ……………………………….. SKIPPED [INFO] user-service ………………………………… SKIPPED [INFO] myweb ………………………………………. SKIPPED [INFO] ———————————————————————— [INFO]
记录一下,关于 idea 使用 maven 打包 的时候, install 过后, 报错 : The packaging for this project did not assign a file to the build artifact -> [Help 1] 上面这句话是找不到这个 打包 插件,并非没有下载这个插件,而是你自己的项目没有引用这个 maven 插件。 idea 打包 ,从右边的 maven 插件来...
一、错误原因 1.jdk版本过低: maven 最新版本支持Java7及以上,一般都是java8 2. maven 版本过高:比如我使用 maven 最新版本3.6.3,导致出现此问题,换成3.6.1解决 二、如何下载历史版本 1.官网地址,进入download页面 2.点击下图,archives 3.出现历史版本页面,我选择了3.6.1 选择二进制版本,点击 4. IDEA 中重新配置 maven File –>Settings–>搜索 maven ,如下图配置即可 作者:Think—Coder
我想使用 IDEA Maven 管理工具将项目安装到本地仓库,于是选择了Plugins下的 install : install 去执行,如下图所示: 结果出现了如下 报错 信信息: [ERROR] Failed to execute goal org.apache. maven .plugins: maven - install -...
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
This error occurs when the build artifact is not specified in the packaging configuration. To fix this error, you need to specify the build artifact in the packaging configuration. Here are the steps to follow: 1. Open the project 's packaging configuration file (e.g., pom.xml for Maven project s). 2. Look for the packaging section in the file . 3. Specify the build artifact in the packaging section. For example, if you are build ing a JAR file , add the following code: < packaging >jar</ packaging > 4. Save the changes to the file . 5. Re build the project to see if the error is resolved. If the error persists, you may need to check the build settings and ensure that the artifact is being generated correctly.
'build.plugins.plugin.version' for org.apache.tomcat.maven:tomcat7-maven-plugin is missing 23614 idea maven打包 install 报错The packaging for this project did not assign a file to the build artifact 16998 'build.plugins.plugin.version' for org.apache.tomcat.maven:tomcat7-maven-plugin is missing m0_62653861: 这个真的有用,谢谢楼主!!! java tool常用命令分析 昵称已经被占用咯: 写的不错,顶个贴,点个赞,嘿嘿! 在linux下使用curl访问 多参数url GET参数问题 行走的老熊: 学习了,谢谢博主。 Spring Boot中@ConditionOnProperty注解的使用 programmer冲: 用点心行吗? 在linux下使用curl访问 多参数url GET参数问题 anyibingkuai: 详细,谢谢