.flattened-pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>io.seata</groupId>
  6. <artifactId>seata-build</artifactId>
  7. <version>1.6.1</version>
  8. </parent>
  9. <artifactId>seata-parent</artifactId>
  10. <packaging>pom</packaging>
  11. <name>Seata Parent POM 1.6.1</name>
  12. <description>parent for Seata built with Maven</description>
  13. <dependencyManagement>
  14. <dependencies>
  15. <dependency>
  16. <groupId>io.seata</groupId>
  17. <artifactId>seata-dependencies</artifactId>
  18. <version>1.6.1</version>
  19. <type>pom</type>
  20. <scope>import</scope>
  21. </dependency>
  22. </dependencies>
  23. </dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.junit.jupiter</groupId>
  27. <artifactId>junit-jupiter</artifactId>
  28. <scope>test</scope>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.junit.platform</groupId>
  32. <artifactId>junit-platform-launcher</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.mockito</groupId>
  37. <artifactId>mockito-core</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.mockito</groupId>
  42. <artifactId>mockito-junit-jupiter</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.assertj</groupId>
  47. <artifactId>assertj-core</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.slf4j</groupId>
  52. <artifactId>slf4j-simple</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <extensions>
  58. <extension>
  59. <groupId>kr.motd.maven</groupId>
  60. <artifactId>os-maven-plugin</artifactId>
  61. <version>${os-maven-plugin.version}</version>
  62. </extension>
  63. </extensions>
  64. <plugins>
  65. <plugin>
  66. <artifactId>maven-source-plugin</artifactId>
  67. <version>${maven-source-plugin.version}</version>
  68. <executions>
  69. <execution>
  70. <phase>package</phase>
  71. <goals>
  72. <goal>jar-no-fork</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. </plugin>
  77. <plugin>
  78. <artifactId>maven-pmd-plugin</artifactId>
  79. <version>${maven-pmd-plugin.version}</version>
  80. <executions>
  81. <execution>
  82. <phase>verify</phase>
  83. <goals>
  84. <goal>check</goal>
  85. </goals>
  86. </execution>
  87. </executions>
  88. <dependencies>
  89. <dependency>
  90. <groupId>com.alibaba.p3c</groupId>
  91. <artifactId>p3c-pmd</artifactId>
  92. <version>${p3c-pmd.version}</version>
  93. </dependency>
  94. </dependencies>
  95. <configuration>
  96. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  97. <minimumPriority>2</minimumPriority>
  98. <printFailingErrors>true</printFailingErrors>
  99. <rulesets>
  100. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  101. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  102. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  103. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  104. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  105. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  106. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  107. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  108. <ruleset>rulesets/java/ali-other.xml</ruleset>
  109. <ruleset>rulesets/java/ali-set.xml</ruleset>
  110. </rulesets>
  111. <excludes>
  112. <exclude>**/generated/*.java</exclude>
  113. <exclude>**/antlr/mysql/parser/*.*</exclude>
  114. <exclude>**/antlr/mysql/antlr/*.*</exclude>
  115. <exclude>**/antlr/mysql/stream/ANTLRNoCaseStringStream.java</exclude>
  116. </excludes>
  117. </configuration>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.jacoco</groupId>
  121. <artifactId>jacoco-maven-plugin</artifactId>
  122. <version>${jacoco-maven-plugin.version}</version>
  123. <executions>
  124. <execution>
  125. <goals>
  126. <goal>prepare-agent</goal>
  127. </goals>
  128. </execution>
  129. <execution>
  130. <id>report</id>
  131. <phase>test</phase>
  132. <goals>
  133. <goal>report</goal>
  134. </goals>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. <plugin>
  139. <artifactId>maven-surefire-plugin</artifactId>
  140. <version>${maven-surefire-plugin.version}</version>
  141. <configuration>
  142. <argLine>${maven.surefire.argLine}</argLine>
  143. </configuration>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. <profiles>
  148. <profile>
  149. <id>licenseCheck</id>
  150. <build>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.codehaus.mojo</groupId>
  154. <artifactId>license-maven-plugin</artifactId>
  155. <executions>
  156. <execution>
  157. <id>license-check</id>
  158. <phase>generate-sources</phase>
  159. <goals>
  160. <goal>add-third-party</goal>
  161. </goals>
  162. <configuration>
  163. <includeOptional>false</includeOptional>
  164. <useMissingFile>false</useMissingFile>
  165. <failOnMissing>false</failOnMissing>
  166. <licenseMerges>
  167. <licenseMerge>Apache License, Version 2.0|The Apache Software License, Version
  168. 2.0|ASF 2.0|Apache 2|Apache-2.0|Apache 2.0 License|Apache 2.0|Apache License v2.0|Apache License 2.0|The Apache License, Version 2.0|The Apache Software License, Version 2.0</licenseMerge>
  169. <licenseMerge>The MIT License|MIT License</licenseMerge>
  170. <licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD
  171. License|BSD|3-Clause BSD License|The New BSD License</licenseMerge>
  172. </licenseMerges>
  173. </configuration>
  174. </execution>
  175. </executions>
  176. </plugin>
  177. </plugins>
  178. </build>
  179. </profile>
  180. <profile>
  181. <id>image</id>
  182. <properties>
  183. <dependencies.copy.skip>false</dependencies.copy.skip>
  184. <image.publish.skip>false</image.publish.skip>
  185. <image.tags>latest</image.tags>
  186. <mysql.jdbc.version>5.1.35</mysql.jdbc.version>
  187. <mysql8.jdbc.version>8.0.27</mysql8.jdbc.version>
  188. </properties>
  189. </profile>
  190. <profile>
  191. <id>release-image</id>
  192. <properties>
  193. <image.tags>${project.version},latest</image.tags>
  194. </properties>
  195. </profile>
  196. <profile>
  197. <id>arrch64</id>
  198. <properties>
  199. <os.detected.classifier>osx-x86_64</os.detected.classifier>
  200. </properties>
  201. </profile>
  202. <profile>
  203. <id>checkstyle</id>
  204. <activation>
  205. <jdk>[1.8,)</jdk>
  206. </activation>
  207. <build>
  208. <plugins>
  209. <plugin>
  210. <groupId>com.mycila</groupId>
  211. <artifactId>license-maven-plugin</artifactId>
  212. <version>3.0</version>
  213. <executions>
  214. <execution>
  215. <phase>generate-sources</phase>
  216. <goals>
  217. <goal>remove</goal>
  218. <goal>format</goal>
  219. </goals>
  220. <configuration>
  221. <quiet>true</quiet>
  222. <header>E:\JetReporstory\kw\seata/style/copyright</header>
  223. <includes>
  224. <include>**/src/main/java/**</include>
  225. <include>**/src/test/java/**</include>
  226. </includes>
  227. <excludes>
  228. <exclude>**/generated/**</exclude>
  229. <exclude>**/antlr/mysql/parser/*.*</exclude>
  230. <exclude>**/antlr/mysql/antlr/*.*</exclude>
  231. <exclude>**/antlr/mysql/stream/ANTLRNoCaseStringStream.java</exclude>
  232. </excludes>
  233. <strictCheck>true</strictCheck>
  234. <mapping>
  235. <java>SLASHSTAR_STYLE</java>
  236. </mapping>
  237. </configuration>
  238. </execution>
  239. </executions>
  240. <configuration>
  241. <quiet>true</quiet>
  242. <header>E:\JetReporstory\kw\seata/style/copyright</header>
  243. <includes>
  244. <include>**/src/main/java/**</include>
  245. <include>**/src/test/java/**</include>
  246. </includes>
  247. <excludes>
  248. <exclude>**/generated/**</exclude>
  249. <exclude>**/antlr/mysql/parser/*.*</exclude>
  250. <exclude>**/antlr/mysql/antlr/*.*</exclude>
  251. <exclude>**/antlr/mysql/stream/ANTLRNoCaseStringStream.java</exclude>
  252. </excludes>
  253. <strictCheck>true</strictCheck>
  254. <mapping>
  255. <java>SLASHSTAR_STYLE</java>
  256. </mapping>
  257. </configuration>
  258. </plugin>
  259. <plugin>
  260. <artifactId>maven-checkstyle-plugin</artifactId>
  261. <version>3.1.1</version>
  262. <executions>
  263. <execution>
  264. <id>validate</id>
  265. <phase>validate</phase>
  266. <goals>
  267. <goal>checkstyle</goal>
  268. </goals>
  269. <configuration>
  270. <configLocation>E:\JetReporstory\kw\seata/style/seata_checkstyle.xml</configLocation>
  271. <suppressionsLocation>E:\JetReporstory\kw\seata/style/seata_suppressions.xml</suppressionsLocation>
  272. <encoding>UTF-8</encoding>
  273. <consoleOutput>true</consoleOutput>
  274. <failsOnError>true</failsOnError>
  275. </configuration>
  276. </execution>
  277. </executions>
  278. </plugin>
  279. </plugins>
  280. </build>
  281. <properties>
  282. <os.detected.arch>x86_64</os.detected.arch>
  283. <os.detected.classifier>windows-x86_64</os.detected.classifier>
  284. <os.detected.name>windows</os.detected.name>
  285. </properties>
  286. </profile>
  287. </profiles>
  288. </project>