Maven 引人公共jar以及引入自己封装的jar的配置

1、引人开源jar

打开此网站 :https://mvnrepository.com/

以quartz-jobs.jar为例子:

打开:https://mvnrepository.com/artifact/org.quartz-scheduler/quartz-jobs/2.2.3



把红色框中,复制到pom.xml文件即可。

2、引入xx.sdk.jar,此jar为自己或他人独立封装

pom.xml 文件中找到

<dependencies>
<dependency>
   <groupId>com.xx</groupId>
   <artifactId>xx-SDK</artifactId>
   <version>1.0.6</version><!-- 添加版本信息 -->
   <scope>system</scope>
   <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/xx-SDK-1.0.6-RELEASE.jar</systemPath>//此处指定路径即可
</dependency>
</dependencies>



猜你喜欢

转载自blog.csdn.net/u012833739/article/details/54971837