springcloud项目 线上使用jenkins拉取git上面的代码 build时第三方jar无法打包问题
父工程 pom.xml
<build>
<finalName>${project.name}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>${project.build.finalName}</finalName>
<includeSystemScope>true</includeSystemScope>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
公共子工程pom.xml
<dependency>
<groupId>com.openapi</groupId>
<artifactId>sdk</artifactId>
<version>6.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/lib/openapi-sdk-6.0.jar</systemPath>
</dependency>
<dependency>
<groupId>com.itf.idc</groupId>
<artifactId>util</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/lib/itfrsa-sdk-1.0.jar</systemPath>
</dependency>
公共子工程引入第三方jar包