fix: shade plugin should merge all services and spring imports

pull/1024/head
shuiqingliu 2 years ago
parent 4e8b524048
commit 44192f968f

@ -77,19 +77,26 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<configuration> <configuration>
<createSourcesJar>true</createSourcesJar> <createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>com.tencent.cloud:spring-cloud-tencent</include>
</includes>
</artifactSet>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <id>sct-all-shade</id>
<goals> <goals>
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration>
<createSourcesJar>true</createSourcesJar>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring/org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration.imports</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports</resource>
</transformer>
</transformers>
</configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>

Loading…
Cancel
Save