3、maven项目打包jar给其他项目pom引用

创建模块并打包如下:

 

 

 

在其他模块调用时:

 <dependency>
     <groupId>org.example</groupId>
     <artifactId>cloud-api-commons</artifactId>
     <version>${project.version}</version>
</dependency>

 


查看<groudId>号为:

 

 

posted @ 2020-07-31 14:00  JDLiao  阅读(713)  评论(0编辑  收藏  举报