spring boot 項目,maven打jar包時,將本地jar一塊打入包

在pom.xml文件中引入本地jar的方式:spring

<dependency>
    <groupId>org.mine</groupId>
    <artifactId>myjar</artifactId>
    <version>1.1.1</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/libs/myjar.jar</systemPath>
</dependency>

在pom.xml文件中使用spring-boot-maven-plugin,配置includeSystemScope爲truemaven

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
             <includeSystemScope>true</includeSystemScope>
        </configuration>
</plugin>
相關文章
相關標籤/搜索