pom.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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.dataengine</groupId>
  13. <artifactId>data-engine-register</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>data_engine_register</name>
  16. <description>样例服务</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <jdk.version>8</jdk.version>
  20. <com-gct-common-core.version>2.0-SNAPSHOT</com-gct-common-core.version>
  21. <com-gct-common-security.version>2.0-SNAPSHOT</com-gct-common-security.version>
  22. <com-gct-common-util.version>2.0-SNAPSHOT</com-gct-common-util.version>
  23. <commons-io.version>2.8.0</commons-io.version>
  24. <org.apache.thrift.version>0.13.0</org.apache.thrift.version>
  25. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  26. <lombok.version>1.16.18</lombok.version>
  27. <lombok-maven-plugin.version>1.16.6.1</lombok-maven-plugin.version>
  28. </properties>
  29. <dependencies>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-configuration-processor</artifactId>
  33. <optional>true</optional>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-quartz</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-openfeign</artifactId>
  42. </dependency>
  43. <!--common核心包依赖-->
  44. <dependency>
  45. <groupId>com.gct.common.core</groupId>
  46. <artifactId>common-core</artifactId>
  47. <version>1.0-SNAPSHOT</version>
  48. </dependency>
  49. <!--common 安全包-->
  50. <dependency>
  51. <groupId>com.gct.common.security</groupId>
  52. <artifactId>common-security</artifactId>
  53. <version>2.0-SNAPSHOT</version>
  54. </dependency>
  55. <!--nocas 注册中心依赖-->
  56. <dependency>
  57. <groupId>com.alibaba.cloud</groupId>
  58. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  59. </dependency>
  60. <!--sentinel依赖-->
  61. <!-- <dependency>
  62. <groupId>com.alibaba.cloud</groupId>
  63. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  64. </dependency>
  65. &lt;!&ndash;actuator 流量收集 使用sentinel的前提&ndash;&gt;
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-actuator</artifactId>
  69. </dependency>-->
  70. <!--web 依赖-->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-web</artifactId>
  74. </dependency>
  75. <!--lombok-->
  76. <dependency>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok</artifactId>
  79. <optional>true</optional>
  80. </dependency>
  81. <!-- 与数据库操作相关依赖 -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-jdbc</artifactId>
  85. </dependency>
  86. <!-- postgresql -->
  87. <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
  88. <dependency>
  89. <groupId>org.postgresql</groupId>
  90. <artifactId>postgresql</artifactId>
  91. <version>42.2.18</version>
  92. </dependency>
  93. <!--文件上传相关-->
  94. <dependency>
  95. <groupId>commons-io</groupId>
  96. <artifactId>commons-io</artifactId>
  97. <version>2.8.0</version>
  98. </dependency>
  99. <!-- spring security -->
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-security</artifactId>
  103. </dependency>
  104. <!--junit测试-->
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-test</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter-validation</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.github.kstyrc</groupId>
  116. <artifactId>embedded-redis</artifactId>
  117. <version>0.6</version>
  118. <scope>compile</scope>
  119. </dependency>
  120. </dependencies>
  121. <dependencyManagement>
  122. <dependencies>
  123. <!-- Spring Cloud Hoxton -->
  124. <dependency>
  125. <groupId>org.springframework.cloud</groupId>
  126. <artifactId>spring-cloud-dependencies</artifactId>
  127. <version>Hoxton.SR3</version>
  128. <type>pom</type>
  129. <scope>import</scope>
  130. </dependency>
  131. <!-- Spring Cloud Alibaba -->
  132. <dependency>
  133. <groupId>com.alibaba.cloud</groupId>
  134. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  135. <version>2.2.1.RELEASE</version>
  136. <type>pom</type>
  137. <scope>import</scope>
  138. </dependency>
  139. </dependencies>
  140. </dependencyManagement>
  141. <build>
  142. <resources>
  143. <resource>
  144. <directory>src/main/java</directory>
  145. <excludes>
  146. <exclude>**/*.java</exclude>
  147. </excludes>
  148. </resource>
  149. <resource>
  150. <directory>src/main/resources</directory>
  151. <includes>
  152. <include>**/*.*</include>
  153. </includes>
  154. </resource>
  155. <resource>
  156. <directory>src/main/java</directory>
  157. <includes>
  158. <include>**/*.xml</include>
  159. </includes>
  160. <!-- 是否替换资源中的属性-->
  161. <filtering>false</filtering>
  162. </resource>
  163. </resources>
  164. <plugins>
  165. <plugin>
  166. <groupId>org.springframework.boot</groupId>
  167. <artifactId>spring-boot-maven-plugin</artifactId>
  168. </plugin>
  169. <plugin>
  170. <groupId>org.apache.maven.plugins</groupId>
  171. <artifactId>maven-compiler-plugin</artifactId>
  172. <version>${maven-compiler-plugin.version}</version>
  173. <configuration>
  174. <!-- 设置是否执行注释处理。 仅适用于JDK1.6如果没有设置,编译和注释处理都同时执行。
  175. 允许值为:
  176. none - no annotation processing is performed.
  177. only - only annotation processing is done, no compilation.
  178. 设置为only complie 或者build一下就可以运行annotation processor了
  179. 平常走默认值即可-->
  180. <!-- <proc>only</proc>-->
  181. <source>${jdk.version}</source>
  182. <target>${jdk.version}</target>
  183. <encoding>utf-8</encoding>
  184. </configuration>
  185. </plugin>
  186. <plugin>
  187. <groupId>org.projectlombok</groupId>
  188. <artifactId>lombok-maven-plugin</artifactId>
  189. <version>${lombok-maven-plugin.version}</version>
  190. </plugin>
  191. <!-- 打包过程忽略Junit测试 -->
  192. <plugin>
  193. <groupId>org.apache.maven.plugins</groupId>
  194. <artifactId>maven-surefire-plugin</artifactId>
  195. <configuration>
  196. <skip>true</skip>
  197. </configuration>
  198. </plugin>
  199. </plugins>
  200. </build>
  201. </project>