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