在maven项目中解决第三方jar包依赖的问题

在maven项目中,对于那些在maven仓库中不存在的第三方jar,依赖解决通常有如下解决方法:

方法1:直接将jar包拷贝到项目指定目录下,然后在pom文件中指定依赖类型为system,如:

1 <dependencies>
2     <dependency>
3         <groupId>xxx</groupId>
4         <artifactId>xxx</artifactId>
5         <version>6.0</version>
6         <scope>system</scope>
7         <systemPath>${project.basedir}/libs/xxx-1.0.jar</systemPath>
8     </dependency>
9 </dependencies>
View Code

相关文章:

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