Skip to content

Commit 77e274a

Browse files
ascrutaewu-sheng
authored andcommitted
Fix the dependencies package is incorrect (#7)
1 parent 912e2c9 commit 77e274a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<properties>
2020
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2121
<skywalking.version>5.0.0-GA</skywalking.version>
22+
<shade.package>org.apache.skywalking.apm.dependencies</shade.package>
23+
<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
24+
<shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target>
2225
</properties>
2326

2427
<dependencies>
@@ -75,6 +78,29 @@
7578
<artifactId>versions-maven-plugin</artifactId>
7679
<version>2.7</version>
7780
</plugin>
81+
<plugin>
82+
<artifactId>maven-shade-plugin</artifactId>
83+
<executions>
84+
<execution>
85+
<phase>package</phase>
86+
<goals>
87+
<goal>shade</goal>
88+
</goals>
89+
<configuration>
90+
<shadedArtifactAttached>false</shadedArtifactAttached>
91+
<createDependencyReducedPom>true</createDependencyReducedPom>
92+
<createSourcesJar>true</createSourcesJar>
93+
<shadeSourcesContent>true</shadeSourcesContent>
94+
<relocations>
95+
<relocation>
96+
<pattern>${shade.net.bytebuddy.source}</pattern>
97+
<shadedPattern>${shade.net.bytebuddy.target}</shadedPattern>
98+
</relocation>
99+
</relocations>
100+
</configuration>
101+
</execution>
102+
</executions>
103+
</plugin>
78104
</plugins>
79105
</build>
80106
</project>

0 commit comments

Comments
 (0)