Skip to content

Commit 0f538ba

Browse files
committed
add shaded sofa dependency
1 parent bec5329 commit 0f538ba

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

pom.xml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,39 @@
361361
</execution>
362362
</executions>
363363
</plugin>
364+
<plugin>
365+
<groupId>org.apache.maven.plugins</groupId>
366+
<artifactId>maven-shade-plugin</artifactId>
367+
<version>3.2.4</version>
368+
<executions>
369+
<execution>
370+
<!-- 和 package 阶段绑定 -->
371+
<phase>package</phase>
372+
<goals>
373+
<goal>shade</goal>
374+
</goals>
375+
<configuration>
376+
<shadedArtifactAttached>true</shadedArtifactAttached>
377+
<shadedClassifierName>shade</shadedClassifierName>
378+
<!-- Any name that makes sense -->
379+
</configuration>
380+
</execution>
381+
</executions>
382+
<configuration>
383+
<relocations>
384+
<relocation>
385+
<pattern>com.alipay.sofa.common</pattern>
386+
<shadedPattern>com.shaded.alipay.sofa.common</shadedPattern>
387+
</relocation>
388+
<relocation>
389+
<pattern>com.alipay.remoting</pattern>
390+
<shadedPattern>com.shaded.alipay.remoting</shadedPattern>
391+
</relocation>
392+
</relocations>
393+
</configuration>
394+
</plugin>
364395
</plugins>
365396
</build>
366397
</profile>
367398
</profiles>
368-
</project>
399+
</project>

0 commit comments

Comments
 (0)