pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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.subsample</groupId>
  13. <artifactId>microarch_bg_centralbase</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>microarch_bg_centralbase</name>
  16. <description>基础数据服务</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. </properties>
  20. <dependencies>
  21. <!--common核心包依赖-->
  22. <dependency>
  23. <groupId>com.gct.common.core</groupId>
  24. <artifactId>common-core</artifactId>
  25. <version>2.0-SNAPSHOT</version>
  26. </dependency>
  27. <!--common工具包依赖-->
  28. <dependency>
  29. <groupId>com.gct.common.util</groupId>
  30. <artifactId>common-util</artifactId>
  31. <version>2.0-SNAPSHOT</version>
  32. </dependency>
  33. <!--common 安全包-->
  34. <dependency>
  35. <groupId>com.gct.common.security</groupId>
  36. <artifactId>common-security</artifactId>
  37. <version>2.0-SNAPSHOT</version>
  38. </dependency>
  39. <!--nocas 注册中心依赖-->
  40. <dependency>
  41. <groupId>com.alibaba.cloud</groupId>
  42. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  43. </dependency>
  44. <!--sentinel依赖-->
  45. <!-- <dependency>
  46. <groupId>com.alibaba.cloud</groupId>
  47. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  48. </dependency>
  49. &lt;!&ndash;actuator 流量收集 使用sentinel的前提&ndash;&gt;
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-actuator</artifactId>
  53. </dependency>-->
  54. <!--web 依赖-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-web</artifactId>
  58. </dependency>
  59. <!--lombok-->
  60. <dependency>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. <optional>true</optional>
  64. </dependency>
  65. <!-- 与数据库操作相关依赖 -->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-jdbc</artifactId>
  69. </dependency>
  70. <!-- postgresql -->
  71. <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
  72. <dependency>
  73. <groupId>org.postgresql</groupId>
  74. <artifactId>postgresql</artifactId>
  75. <version>42.2.18</version>
  76. </dependency>
  77. <!--文件上传相关-->
  78. <dependency>
  79. <groupId>commons-io</groupId>
  80. <artifactId>commons-io</artifactId>
  81. <version>2.8.0</version>
  82. </dependency>
  83. <!-- spring security -->
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-security</artifactId>
  87. </dependency>
  88. <!--junit测试-->
  89. <dependency>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-starter-test</artifactId>
  92. <scope>test</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-validation</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.baomidou</groupId>
  100. <artifactId>mybatis-plus-annotation</artifactId>
  101. <version>3.3.1</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-test</artifactId>
  106. <version>2.3.0.RELEASE</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>junit</groupId>
  110. <artifactId>junit</artifactId>
  111. <version>4.13</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework</groupId>
  115. <artifactId>spring-test</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.alibaba.cloud</groupId>
  119. <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
  120. </dependency>
  121. <!-- <dependency>
  122. <groupId>com.alibaba.csp</groupId>
  123. <artifactId>sentinel-datasource-nacos</artifactId>
  124. </dependency>-->
  125. <dependency>
  126. <groupId>com.alibaba.cloud</groupId>
  127. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  128. </dependency>
  129. </dependencies>
  130. <dependencyManagement>
  131. <dependencies>
  132. <!-- Spring Cloud Hoxton -->
  133. <dependency>
  134. <groupId>org.springframework.cloud</groupId>
  135. <artifactId>spring-cloud-dependencies</artifactId>
  136. <version>Hoxton.SR3</version>
  137. <type>pom</type>
  138. <scope>import</scope>
  139. </dependency>
  140. <!-- Spring Cloud Alibaba -->
  141. <dependency>
  142. <groupId>com.alibaba.cloud</groupId>
  143. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  144. <version>2.2.1.RELEASE</version>
  145. <type>pom</type>
  146. <scope>import</scope>
  147. </dependency>
  148. </dependencies>
  149. </dependencyManagement>
  150. <build>
  151. <resources>
  152. <resource>
  153. <directory>src/main/java</directory>
  154. <excludes>
  155. <exclude>**/*.java</exclude>
  156. </excludes>
  157. </resource>
  158. <resource>
  159. <directory>src/main/resources</directory>
  160. <includes>
  161. <include>**/*.*</include>
  162. </includes>
  163. </resource>
  164. </resources>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-maven-plugin</artifactId>
  169. </plugin>
  170. <!-- 打包过程忽略Junit测试 -->
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-surefire-plugin</artifactId>
  174. <configuration>
  175. <skip>true</skip>
  176. </configuration>
  177. </plugin>
  178. </plugins>
  179. </build>
  180. </project>