pom.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 1999-2019 Seata.io Group.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <project xmlns="http://maven.apache.org/POM/4.0.0"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <parent>
  21. <groupId>io.seata</groupId>
  22. <artifactId>seata-parent</artifactId>
  23. <version>${revision}</version>
  24. <relativePath>../../pom.xml</relativePath>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>apm-seata-skywalking-plugin</artifactId>
  28. <packaging>jar</packaging>
  29. <name>apm-seata-skywalking-plugin ${project.version}</name>
  30. <description>skywalking plugin for Seata built with Maven</description>
  31. <properties>
  32. <skywalking.version>8.6.0</skywalking.version>
  33. <maven-antrun-plugin.skip>true</maven-antrun-plugin.skip>
  34. <agent.dir>${project.build.directory}/ext/skywalking-agent/</agent.dir>
  35. <agent-plugins.dir>${agent.dir}/plugins/</agent-plugins.dir>
  36. <agent-config.dir>${agent.dir}/config</agent-config.dir>
  37. </properties>
  38. <dependencies>
  39. <dependency>
  40. <groupId>org.apache.skywalking</groupId>
  41. <artifactId>apm-agent-core</artifactId>
  42. <version>${skywalking.version}</version>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>io.seata</groupId>
  47. <artifactId>seata-all</artifactId>
  48. <version>${project.version}</version>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>io.seata</groupId>
  53. <artifactId>seata-server</artifactId>
  54. <version>${project.version}</version>
  55. <exclusions>
  56. <exclusion>
  57. <groupId>*</groupId>
  58. <artifactId>*</artifactId>
  59. </exclusion>
  60. </exclusions>
  61. <scope>provided</scope>
  62. </dependency>
  63. </dependencies>
  64. <build>
  65. <plugins>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-shade-plugin</artifactId>
  69. <executions>
  70. <execution>
  71. <phase>package</phase>
  72. <goals>
  73. <goal>shade</goal>
  74. </goals>
  75. <configuration>
  76. <artifactSet>
  77. <includes>
  78. <include>net.bytebuddy:*</include>
  79. </includes>
  80. </artifactSet>
  81. <relocations>
  82. <relocation>
  83. <pattern>net.bytebuddy</pattern>
  84. <shadedPattern>org.apache.skywalking.apm.dependencies.net.bytebuddy</shadedPattern>
  85. </relocation>
  86. </relocations>
  87. </configuration>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-dependency-plugin</artifactId>
  94. <executions>
  95. <execution>
  96. <id>copy</id>
  97. <phase>package</phase>
  98. <goals>
  99. <goal>copy</goal>
  100. </goals>
  101. <configuration>
  102. <artifactItems>
  103. <artifactItem>
  104. <groupId>org.apache.skywalking</groupId>
  105. <artifactId>apm-agent</artifactId>
  106. <version>${skywalking.version}</version>
  107. <destFileName>skywalking-agent.jar</destFileName>
  108. <outputDirectory>${agent.dir}</outputDirectory>
  109. </artifactItem>
  110. <artifactItem>
  111. <groupId>io.seata</groupId>
  112. <artifactId>apm-seata-skywalking-plugin</artifactId>
  113. <version>${project.version}</version>
  114. <outputDirectory>${agent-plugins.dir}</outputDirectory>
  115. </artifactItem>
  116. <artifactItem>
  117. <groupId>org.apache.skywalking</groupId>
  118. <artifactId>apm-jdbc-commons</artifactId>
  119. <version>${skywalking.version}</version>
  120. <outputDirectory>${agent-plugins.dir}</outputDirectory>
  121. </artifactItem>
  122. <artifactItem>
  123. <groupId>org.apache.skywalking</groupId>
  124. <artifactId>apm-mysql-commons</artifactId>
  125. <version>${skywalking.version}</version>
  126. <outputDirectory>${agent-plugins.dir}</outputDirectory>
  127. </artifactItem>
  128. <artifactItem>
  129. <groupId>org.apache.skywalking</groupId>
  130. <artifactId>apm-mysql-5.x-plugin</artifactId>
  131. <version>${skywalking.version}</version>
  132. <outputDirectory>${agent-plugins.dir}</outputDirectory>
  133. </artifactItem>
  134. <artifactItem>
  135. <groupId>org.apache.skywalking</groupId>
  136. <artifactId>apm-mysql-6.x-plugin</artifactId>
  137. <version>${skywalking.version}</version>
  138. <outputDirectory>${agent-plugins.dir}</outputDirectory>
  139. </artifactItem>
  140. <artifactItem>
  141. <groupId>org.apache.skywalking</groupId>
  142. <artifactId>apm-mysql-8.x-plugin</artifactId>
  143. <version>${skywalking.version}</version>
  144. <outputDirectory>${agent-plugins.dir}</outputDirectory>
  145. </artifactItem>
  146. </artifactItems>
  147. </configuration>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. </plugins>
  152. <pluginManagement>
  153. <plugins>
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-antrun-plugin</artifactId>
  157. <version>${maven-antrun-plugin.version}</version>
  158. <configuration>
  159. <skip>${maven-antrun-plugin.skip}</skip>
  160. </configuration>
  161. <executions>
  162. <execution>
  163. <phase>package</phase>
  164. <goals>
  165. <goal>run</goal>
  166. </goals>
  167. <configuration>
  168. <tasks>
  169. <copy overwrite="true" file="${project.basedir}/config/agent.config" tofile="${agent-config.dir}/agent.config" />
  170. </tasks>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. </plugins>
  176. </pluginManagement>
  177. </build>
  178. <profiles>
  179. <profile>
  180. <id>release</id>
  181. <properties>
  182. <maven-antrun-plugin.skip>false</maven-antrun-plugin.skip>
  183. </properties>
  184. </profile>
  185. <profile>
  186. <id>release-seata</id>
  187. <properties>
  188. <maven-antrun-plugin.skip>false</maven-antrun-plugin.skip>
  189. </properties>
  190. </profile>
  191. </profiles>
  192. </project>