首页 > 其他分享 >idea子项目打jar包错误 Could not find artifact xxx:pom:1.0-SNAPSHOT 解决办法

idea子项目打jar包错误 Could not find artifact xxx:pom:1.0-SNAPSHOT 解决办法

时间:2023-03-29 19:57:18浏览次数:53  
标签:1.0 Could jar idea pom 子项目 interface

idea子项目打jar包错误 Could not find artifact xxx:pom:1.0-SNAPSHOT 解决办法
原文链接:https://blog.csdn.net/a459471027/article/details/124195296

项目结构如下:

首先打开maven管理界面找到根目录并打开生命周期,点击clean,再点击install

比如说这时我们需要给pinyougou-sellergoods-interface打jar包

pom.xml文件下记得添加
<packaging>jar</packaging>

接着打开pinyougou-sellergoods-interface的生命周期记得先编译再打包

 打包完成后pinyougou-sellergoods-interface的target下如图所示

 

标签:1.0,Could,jar,idea,pom,子项目,interface
From: https://www.cnblogs.com/sunny3158/p/17270120.html

相关文章