pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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.diagnose</groupId>
  13. <artifactId>microarch_bg_diagnose</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>dgns-diagnose</name>
  16. <description>功图诊断服务</description>
  17. <dependencies>
  18. <!--common核心包依赖-->
  19. <dependency>
  20. <groupId>com.gct.common.core</groupId>
  21. <artifactId>common-core</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.gct.common.security</groupId>
  25. <artifactId>common-security</artifactId>
  26. </dependency>
  27. <!--common格式化功图-->
  28. <dependency>
  29. <groupId>com.gct.common.util</groupId>
  30. <artifactId>common-util</artifactId>
  31. </dependency>
  32. <!--nacos 注册中心依赖-->
  33. <dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.alibaba.cloud</groupId>
  39. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  40. </dependency>
  41. <!-- <dependency>
  42. <groupId>com.alibaba.csp</groupId>
  43. <artifactId>sentinel-datasource-nacos</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. <!-- spring security -->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-security</artifactId>
  58. </dependency>
  59. <!--RocketMQ starter-->
  60. <dependency>
  61. <groupId>org.apache.rocketmq</groupId>
  62. <artifactId>rocketmq-spring-boot-starter</artifactId>
  63. <version>2.2.0</version>
  64. </dependency>
  65. <!--lombok-->
  66. <dependency>
  67. <groupId>org.projectlombok</groupId>
  68. <artifactId>lombok</artifactId>
  69. <optional>true</optional>
  70. <scope>provided</scope>
  71. </dependency>
  72. <!-- 与数据库操作相关依赖 -->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-jdbc</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.postgresql</groupId>
  79. <artifactId>postgresql</artifactId>
  80. </dependency>
  81. <!--文件上传相关-->
  82. <dependency>
  83. <groupId>commons-io</groupId>
  84. <artifactId>commons-io</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. <dependency>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-configuration-processor</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-quartz</artifactId>
  141. </dependency>
  142. </dependencies>
  143. <dependencyManagement>
  144. <dependencies>
  145. <!-- Spring Cloud Hoxton 统一版本 -->
  146. <dependency>
  147. <groupId>org.springframework.cloud</groupId>
  148. <artifactId>spring-cloud-dependencies</artifactId>
  149. <version>Hoxton.SR3</version>
  150. <type>pom</type>
  151. <scope>import</scope>
  152. </dependency>
  153. <!-- Spring Cloud Alibaba 统一版本-->
  154. <dependency>
  155. <groupId>com.alibaba.cloud</groupId>
  156. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  157. <version>2.2.1.RELEASE</version>
  158. <type>pom</type>
  159. <scope>import</scope>
  160. </dependency>
  161. <!-- 地航发布的组件 统一版本 -->
  162. <dependency>
  163. <groupId>com.gct.common.core</groupId>
  164. <artifactId>common-core</artifactId>
  165. <version>${com-gct-common-core.version}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>com.gct.common.security</groupId>
  169. <artifactId>common-security</artifactId>
  170. <version>${com-gct-common-security.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>com.gct.common.util</groupId>
  174. <artifactId>common-util</artifactId>
  175. <version>${com-gct-common-util.version}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>commons-io</groupId>
  179. <artifactId>commons-io</artifactId>
  180. <version>${commons-io.version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.apache.thrift</groupId>
  184. <artifactId>libthrift</artifactId>
  185. <version>${org.apache.thrift.version}</version>
  186. </dependency>
  187. <!--lombok-->
  188. <dependency>
  189. <groupId>org.projectlombok</groupId>
  190. <artifactId>lombok</artifactId>
  191. <version>${lombok.version}</version>
  192. </dependency>
  193. </dependencies>
  194. </dependencyManagement>
  195. <properties>
  196. <java.version>1.8</java.version>
  197. <jdk.version>8</jdk.version>
  198. <com-gct-common-core.version>2.0-SNAPSHOT</com-gct-common-core.version>
  199. <com-gct-common-security.version>2.0-SNAPSHOT</com-gct-common-security.version>
  200. <com-gct-common-util.version>2.0-SNAPSHOT</com-gct-common-util.version>
  201. <commons-io.version>2.8.0</commons-io.version>
  202. <org.apache.thrift.version>0.13.0</org.apache.thrift.version>
  203. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  204. <lombok.version>1.16.18</lombok.version>
  205. <lombok-maven-plugin.version>1.16.6.1</lombok-maven-plugin.version>
  206. </properties>
  207. <build>
  208. <resources>
  209. <resource>
  210. <directory>src/main/java</directory>
  211. <excludes>
  212. <exclude>**/*.java</exclude>
  213. </excludes>
  214. </resource>
  215. <resource>
  216. <directory>src/main/resources</directory>
  217. <includes>
  218. <include>**/*.*</include>
  219. </includes>
  220. </resource>
  221. </resources>
  222. <plugins>
  223. <plugin>
  224. <groupId>org.springframework.boot</groupId>
  225. <artifactId>spring-boot-maven-plugin</artifactId>
  226. <configuration>
  227. <fork>true</fork>
  228. </configuration>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-compiler-plugin</artifactId>
  233. <version>${maven-compiler-plugin.version}</version>
  234. <configuration>
  235. <!-- 设置是否执行注释处理。 仅适用于JDK1.6如果没有设置,编译和注释处理都同时执行。
  236. 允许值为:
  237. none - no annotation processing is performed.
  238. only - only annotation processing is done, no compilation.
  239. 设置为only complie 或者build一下就可以运行annotation processor了
  240. 平常走默认值即可-->
  241. <!--<proc>only</proc>-->
  242. <source>${jdk.version}</source>
  243. <target>${jdk.version}</target>
  244. <encoding>utf-8</encoding>
  245. </configuration>
  246. </plugin>
  247. <plugin>
  248. <groupId>org.projectlombok</groupId>
  249. <artifactId>lombok-maven-plugin</artifactId>
  250. <version>${lombok-maven-plugin.version}</version>
  251. </plugin>
  252. <!-- 打包过程忽略Junit测试 -->
  253. <plugin>
  254. <groupId>org.apache.maven.plugins</groupId>
  255. <artifactId>maven-surefire-plugin</artifactId>
  256. <configuration>
  257. <skip>true</skip>
  258. </configuration>
  259. </plugin>
  260. </plugins>
  261. </build>
  262. </project>