pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <parent>
  8. <groupId>org.springframework.boot</groupId>
  9. <artifactId>spring-boot-starter-parent</artifactId>
  10. <version>3.1.5</version>
  11. <relativePath/>
  12. </parent>
  13. <artifactId>blockchain-transfer</artifactId>
  14. <groupId>com.table</groupId>
  15. <packaging>jar</packaging>
  16. <name>Blockchain Transfer Service</name>
  17. <description>ETH/BNB/TRON transfer service</description>
  18. <properties>
  19. <java.version>20</java.version>
  20. <maven.compiler.source>20</maven.compiler.source>
  21. <maven.compiler.target>20</maven.compiler.target>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. </properties>
  24. <dependencies>
  25. <!-- Spring Boot Starter Web -->
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <!-- Spring Boot Starter Validation -->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-validation</artifactId>
  34. </dependency>
  35. <!-- HTTP Client -->
  36. <dependency>
  37. <groupId>org.apache.httpcomponents.client5</groupId>
  38. <artifactId>httpclient5</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.baomidou</groupId>
  42. <artifactId>mybatis-plus-boot-starter</artifactId>
  43. <version>3.5.4</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>mysql</groupId>
  47. <artifactId>mysql-connector-java</artifactId>
  48. <version>8.0.33</version>
  49. </dependency>
  50. <!-- JSON Processing -->
  51. <!-- Ethereum cryptography -->
  52. <dependency>
  53. <groupId>org.web3j</groupId>
  54. <artifactId>core</artifactId>
  55. <version>4.9.8</version>
  56. <exclusions>
  57. <exclusion>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-databind</artifactId>
  60. </exclusion>
  61. <!-- 排除旧版本的 OkHttp -->
  62. <exclusion>
  63. <groupId>com.squareup.okhttp3</groupId>
  64. <artifactId>okhttp</artifactId>
  65. </exclusion>
  66. <exclusion>
  67. <groupId>com.squareup.okio</groupId>
  68. <artifactId>okio</artifactId>
  69. </exclusion>
  70. </exclusions>
  71. </dependency>
  72. <!-- 统一引入较新版本的 OkHttp(无 Kotlin 依赖的版本) -->
  73. <dependency>
  74. <groupId>com.squareup.okhttp3</groupId>
  75. <artifactId>okhttp</artifactId>
  76. <version>4.12.0</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>io.github.tronprotocol</groupId>
  80. <artifactId>trident</artifactId>
  81. <version>0.10.0</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>cn.hutool</groupId>
  85. <artifactId>hutool-http</artifactId>
  86. <version>5.8.39</version>
  87. </dependency>
  88. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-json -->
  89. <dependency>
  90. <groupId>cn.hutool</groupId>
  91. <artifactId>hutool-json</artifactId>
  92. <version>5.8.39</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>cn.hutool</groupId>
  96. <artifactId>hutool-crypto</artifactId>
  97. <version>5.8.39</version>
  98. </dependency>
  99. <!-- Lombok -->
  100. <dependency>
  101. <groupId>org.projectlombok</groupId>
  102. <artifactId>lombok</artifactId>
  103. <optional>true</optional>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-amqp</artifactId>
  108. </dependency>
  109. </dependencies>
  110. <!--打包配置-->
  111. <build>
  112. <finalName>blockchain-transfer</finalName>
  113. <resources>
  114. <resource>
  115. <directory>src/main/resources</directory>
  116. <filtering>true</filtering>
  117. <includes>
  118. <include>application.yaml</include>
  119. </includes>
  120. </resource>
  121. <resource>
  122. <directory>src/main/resources</directory>
  123. <filtering>false</filtering>
  124. <includes>
  125. <!-- 只包含当前激活环境的配置文件 -->
  126. <include>application-${profile.active}.yaml</include>
  127. <include>application-${profile.active}.properties</include>
  128. </includes>
  129. </resource>
  130. <resource>
  131. <directory>src/main/resources</directory>
  132. <filtering>false</filtering>
  133. <excludes>
  134. <!-- 排除所有其他环境的配置文件 -->
  135. <exclude>application-*.yaml</exclude>
  136. <exclude>application-*.properties</exclude>
  137. <exclude>bootstrap-*.yaml</exclude>
  138. <exclude>bootstrap-*.properties</exclude>
  139. </excludes>
  140. </resource>
  141. </resources>
  142. <plugins>
  143. <plugin>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-maven-plugin</artifactId>
  146. <configuration>
  147. <excludes>
  148. <exclude>
  149. <groupId>org.projectlombok</groupId>
  150. <artifactId>lombok</artifactId>
  151. </exclude>
  152. </excludes>
  153. </configuration>
  154. </plugin>
  155. <!-- 资源过滤插件 -->
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-resources-plugin</artifactId>
  159. <version>3.3.1</version>
  160. <configuration>
  161. <propertiesEncoding>UTF-8</propertiesEncoding>
  162. <useDefaultDelimiters>true</useDefaultDelimiters>
  163. <delimiters>
  164. <delimiter>@</delimiter>
  165. </delimiters>
  166. </configuration>
  167. </plugin>
  168. </plugins>
  169. </build>
  170. <profiles>
  171. <profile>
  172. <id>dev</id>
  173. <properties>
  174. <profile.active>dev</profile.active>
  175. </properties>
  176. <activation>
  177. <activeByDefault>true</activeByDefault>
  178. </activation>
  179. </profile>
  180. <profile>
  181. <id>local</id>
  182. <properties>
  183. <profile.active>local</profile.active>
  184. </properties>
  185. </profile>
  186. <profile>
  187. <id>prod</id>
  188. <properties>
  189. <profile.active>prod</profile.active>
  190. </properties>
  191. </profile>
  192. </profiles>
  193. </project>