pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.0.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <groupId>com.gct.warning</groupId>
  13. <artifactId>microarch_bg_warning</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>warning</name>
  16. <description>预警服务</description>
  17. <dependencies>
  18. <!--common核心包依赖-->
  19. <dependency>
  20. <groupId>com.gct.common.core</groupId>
  21. <artifactId>common-core</artifactId>
  22. <version>2.0-SNAPSHOT</version>
  23. </dependency>
  24. <!--common工具包依赖-->
  25. <dependency>
  26. <groupId>com.gct.common.util</groupId>
  27. <artifactId>common-util</artifactId>
  28. <version>2.0-SNAPSHOT</version>
  29. </dependency>
  30. <!--common 安全包-->
  31. <dependency>
  32. <groupId>com.gct.common.security</groupId>
  33. <artifactId>common-security</artifactId>
  34. <version>2.0-SNAPSHOT</version>
  35. </dependency>
  36. <!--nacos 注册中心依赖-->
  37. <dependency>
  38. <groupId>com.alibaba.cloud</groupId>
  39. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  40. </dependency>
  41. <!-- <dependency>
  42. <groupId>com.alibaba.cloud</groupId>
  43. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  44. </dependency>-->
  45. <dependency>
  46. <groupId>com.alibaba.cloud</groupId>
  47. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  48. </dependency>
  49. <!--web 依赖-->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-web</artifactId>
  53. </dependency>
  54. <!--RocketMQ starter-->
  55. <dependency>
  56. <groupId>org.apache.rocketmq</groupId>
  57. <artifactId>rocketmq-spring-boot-starter</artifactId>
  58. <version>2.2.0</version>
  59. </dependency>
  60. <!--lombok-->
  61. <dependency>
  62. <groupId>org.projectlombok</groupId>
  63. <artifactId>lombok</artifactId>
  64. <optional>true</optional>
  65. <scope>provided</scope>
  66. </dependency>
  67. <!-- 与数据库操作相关依赖 -->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-jdbc</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.postgresql</groupId>
  74. <artifactId>postgresql</artifactId>
  75. </dependency>
  76. <!--文件上传相关-->
  77. <dependency>
  78. <groupId>commons-io</groupId>
  79. <artifactId>commons-io</artifactId>
  80. </dependency>
  81. <!-- spring security -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-security</artifactId>
  85. </dependency>
  86. <!--junit测试-->
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-test</artifactId>
  90. <scope>test</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework.boot</groupId>
  94. <artifactId>spring-boot-starter-validation</artifactId>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.apache.thrift</groupId>
  98. <artifactId>libthrift</artifactId>
  99. </dependency>
  100. <dependency>
  101. <groupId>junit</groupId>
  102. <artifactId>junit</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework</groupId>
  106. <artifactId>spring-test</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-test</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.junit.jupiter</groupId>
  114. <artifactId>junit-jupiter-api</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.commons</groupId>
  118. <artifactId>commons-pool2</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-devtools</artifactId>
  123. <optional>true</optional>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-configuration-processor</artifactId>
  128. <optional>true</optional>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework.cloud</groupId>
  132. <artifactId>spring-cloud-starter-openfeign</artifactId>
  133. </dependency>
  134. </dependencies>
  135. <dependencyManagement>
  136. <dependencies>
  137. <!-- Spring Cloud Hoxton 统一版本 -->
  138. <dependency>
  139. <groupId>org.springframework.cloud</groupId>
  140. <artifactId>spring-cloud-dependencies</artifactId>
  141. <version>Hoxton.SR3</version>
  142. <type>pom</type>
  143. <scope>import</scope>
  144. </dependency>
  145. <!-- Spring Cloud Alibaba 统一版本-->
  146. <dependency>
  147. <groupId>com.alibaba.cloud</groupId>
  148. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  149. <version>2.2.1.RELEASE</version>
  150. <type>pom</type>
  151. <scope>import</scope>
  152. </dependency>
  153. <!-- 地航发布的组件 统一版本 -->
  154. <dependency>
  155. <groupId>com.gct.common.core</groupId>
  156. <artifactId>common-core</artifactId>
  157. <version>${com-gct-common-core.version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.gct.common.core</groupId>
  161. <artifactId>common-security</artifactId>
  162. <version>${com-gct-common-security.version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>commons-io</groupId>
  166. <artifactId>commons-io</artifactId>
  167. <version>${commons-io.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.apache.thrift</groupId>
  171. <artifactId>libthrift</artifactId>
  172. <version>${org.apache.thrift.version}</version>
  173. </dependency>
  174. <!--lombok-->
  175. <dependency>
  176. <groupId>org.projectlombok</groupId>
  177. <artifactId>lombok</artifactId>
  178. <version>${lombok.version}</version>
  179. </dependency>
  180. </dependencies>
  181. </dependencyManagement>
  182. <properties>
  183. <java.version>1.8</java.version>
  184. <jdk.version>8</jdk.version>
  185. <com-gct-common-core.version>1.0-SNAPSHOT</com-gct-common-core.version>
  186. <com-gct-common-security.version>1.0-SNAPSHOT</com-gct-common-security.version>
  187. <commons-io.version>2.8.0</commons-io.version>
  188. <org.apache.thrift.version>0.13.0</org.apache.thrift.version>
  189. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  190. <lombok.version>1.16.18</lombok.version>
  191. <lombok-maven-plugin.version>1.16.6.1</lombok-maven-plugin.version>
  192. </properties>
  193. <build>
  194. <resources>
  195. <resource>
  196. <directory>src/main/java</directory>
  197. <excludes>
  198. <exclude>**/*.java</exclude>
  199. </excludes>
  200. </resource>
  201. <resource>
  202. <directory>src/main/resources</directory>
  203. <includes>
  204. <include>**/*.*</include>
  205. </includes>
  206. </resource>
  207. </resources>
  208. <plugins>
  209. <plugin>
  210. <groupId>org.springframework.boot</groupId>
  211. <artifactId>spring-boot-maven-plugin</artifactId>
  212. <configuration>
  213. <fork>true</fork>
  214. </configuration>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-compiler-plugin</artifactId>
  219. <version>${maven-compiler-plugin.version}</version>
  220. <configuration>
  221. <!-- 设置是否执行注释处理。 仅适用于JDK1.6如果没有设置,编译和注释处理都同时执行。
  222. 允许值为:
  223. none - no annotation processing is performed.
  224. only - only annotation processing is done, no compilation.
  225. 设置为only complie 或者build一下就可以运行annotation processor了
  226. 平常走默认值即可-->
  227. <!--<proc>only</proc>-->
  228. <source>${jdk.version}</source>
  229. <target>${jdk.version}</target>
  230. <encoding>utf-8</encoding>
  231. </configuration>
  232. </plugin>
  233. <plugin>
  234. <groupId>org.projectlombok</groupId>
  235. <artifactId>lombok-maven-plugin</artifactId>
  236. <version>${lombok-maven-plugin.version}</version>
  237. </plugin>
  238. <!-- 打包过程忽略Junit测试 -->
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-surefire-plugin</artifactId>
  242. <configuration>
  243. <skip>true</skip>
  244. </configuration>
  245. </plugin>
  246. </plugins>
  247. </build>
  248. </project>