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

创建模块并打包如下:

 

在其他模块调用时:

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

查看<groudId>号为:

 

原文地址:https://www.cnblogs.com/-jiandong/p/13409324.html