因天翼云sdk都是离线的jar包
<!--天翼云OOS-->
<dependency>
<groupId>cn.ctyun</groupId>
<artifactId>ctyun-sdk-oss</artifactId>
<version>6.5.5</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/oos-java-sdk-6.5.5.jar</systemPath>
</dependency>
<dependency>
<groupId>httpclient</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.7</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/httpclient-4.5.7.jar</systemPath>
</dependency>
<dependency>
<groupId>httpcore</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.11</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/httpcore-4.4.11.jar</systemPath>
</dependency>
<dependency>
<groupId>joda.time</groupId>
<artifactId>joda-time</artifactId>
<version>2.8.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/joda-time-2.8.1.jar</systemPath>
</dependency>
<!--天翼云OOS-->
打包时,这些包,打不进jar包,导致运行保存(但是本地运行没事)
需要在主pom.xml中添加
<!--解决本地jar包打不进jar的问题-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--解决本地jar包打不进jar的问题-->
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>