pom.xml 11 KB

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