IDEA 第三方jar包 使用

1,加入lib包中,在pom中添加

<dependency>
<groupId>com.sss</groupId>
<artifactId>包名</artifactId>
<version>1.60</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/包名.jar</systemPath>
</dependency>

2,打包的配置需要如下,否则打包的jar中没有第三方jar包
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
posted @ 2019-08-14 09:55  Fernando_Y  阅读(632)  评论(0编辑  收藏  举报