pringboot pom文件引入本地jar包和对其打jar包

maven引入本地jar包需要在pom文件中天剑如下配置:


<dependency>
    <groupId>com.baidu</groupId>
    <artifactId>ueditor</artifactId>
    <version>1.1.2</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/src/main/resources/lib/ueditor-1.1.2.jar</systemPath>
</dependency>

//*****************如果引入的外界jar包不加如下配置,则在idea中打包失败,不能将外界jar包打到WEB—INF/lib中
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin>

猜你喜欢

转载自www.cnblogs.com/leeego-123/p/10538625.html
今日推荐