很多时候,我公司内部都会自己写一些工具包,分模块的项目,打包部署的时候,就不能找到该工具包。

如下面的结构

idea maven 创建本地的工具包仓库

每个子项目需要用到protocol里面的工具

在你工具包的pom文件增加如下,再install

  <configuration>
       <skip>true</skip>
  </configuration>

idea maven 创建本地的工具包仓库

成功

idea maven 创建本地的工具包仓库idea maven 创建本地的工具包仓库

然后在你需要此工具包的项目里增加那个工具包的项目名

idea maven 创建本地的工具包仓库

我的项目名

idea maven 创建本地的工具包仓库

 

相关文章:

  • 2021-06-08
  • 2021-09-17
  • 2021-08-11
  • 2022-01-05
  • 2021-07-11
  • 2021-08-12
  • 2021-12-24
  • 2022-01-24
猜你喜欢
  • 2021-09-17
  • 2021-08-01
  • 2022-12-23
  • 2021-09-26
  • 2021-05-25
  • 2021-07-01
  • 2021-08-26
相关资源
相似解决方案