-
私有jar存放位置
- maven依賴
<dependency>
<groupId>com.hikvision.ga</groupId>
<artifactId>artemis-http-client</artifactId>
<version>1.1.10</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/artemis-http-client-1.1.10.jar</systemPath>
</dependency>
- maven build
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<!--設(shè)置為true,以便把本地的system的jar也包括進(jìn)來-->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
文章來源地址http://www.zghlxwxcb.cn/news/detail-838620.html
文章來源:http://www.zghlxwxcb.cn/news/detail-838620.html
到了這里,關(guān)于maven項(xiàng)目引入私有jar,并打包到j(luò)ava.jar中的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!