1、将要引用的工程打包成jar

2、在要使用的项目中新建lib目录

项目在lib中引用外部jar

 

 3、在pom文件中进行引用

        <dependency>
            <groupId>org....</groupId>
            <artifactId>common</artifactId>
            <version>2.0-SNAPSHOT</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/common.jar</systemPath>
        </dependency>

 

相关文章:

  • 2021-10-06
  • 2022-12-23
  • 2021-07-20
  • 2021-07-20
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2021-09-13
  • 2021-06-14
  • 2021-05-05
  • 2022-12-23
  • 2021-10-23
相关资源
相似解决方案