pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <repositories>
  6. <repository>
  7. <id>aliyun</id>
  8. <url>https://maven.aliyun.com/repository/central</url>
  9. <releases>
  10. <enabled>true</enabled>
  11. </releases>
  12. <snapshots>
  13. <enabled>true</enabled>
  14. </snapshots>
  15. </repository>
  16. </repositories>
  17. <pluginRepositories>
  18. <pluginRepository>
  19. <id>aliyun</id>
  20. <url>https://maven.aliyun.com/repository/central</url>
  21. <releases>
  22. <enabled>true</enabled>
  23. </releases>
  24. <snapshots>
  25. <enabled>true</enabled>
  26. </snapshots>
  27. </pluginRepository>
  28. </pluginRepositories>
  29. <groupId>com.poteviohealth.cgp</groupId>
  30. <artifactId>serve</artifactId>
  31. <version>1.1.0-SNAPSHOT</version>
  32. <name>cgp-serve</name>
  33. <description>服务管理</description>
  34. <properties>
  35. <java.version>1.8</java.version>
  36. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  37. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  38. <spring-boot.version>2.2.7.RELEASE</spring-boot.version>
  39. <spring.cloud.version>Hoxton.SR4</spring.cloud.version>
  40. <jwt.version>0.9.1</jwt.version>
  41. <mybatis.plus.version>3.3.2</mybatis.plus.version>
  42. <org.mapstruct.version>1.3.0.Final</org.mapstruct.version>
  43. <swagger.version>2.9.2</swagger.version>
  44. <alibaba.fastjson>1.2.73</alibaba.fastjson>
  45. <alibaba.druid>1.1.18</alibaba.druid>
  46. <skipTests>true</skipTests>
  47. <xxl-job-core.version>2.1.0</xxl-job-core.version>
  48. </properties>
  49. <dependencies>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-test</artifactId>
  57. <scope>test</scope>
  58. <exclusions>
  59. <exclusion>
  60. <groupId>org.junit.vintage</groupId>
  61. <artifactId>junit-vintage-engine</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <!--mysql驱动[必须],注意8.0.15版本驱动配置和之前版本不一致-->
  66. <dependency>
  67. <groupId>mysql</groupId>
  68. <artifactId>mysql-connector-java</artifactId>
  69. <scope>runtime</scope>
  70. </dependency>
  71. <!--JSON处理框架[必需]-->
  72. <dependency>
  73. <groupId>com.alibaba</groupId>
  74. <artifactId>fastjson</artifactId>
  75. <version>${alibaba.fastjson}</version>
  76. </dependency>
  77. <!--连接资源池框架[必需]-->
  78. <dependency>
  79. <groupId>com.alibaba</groupId>
  80. <artifactId>druid-spring-boot-starter</artifactId>
  81. <version>${alibaba.druid}</version>
  82. </dependency>
  83. <!--Swagger2[必需]-->
  84. <dependency>
  85. <groupId>io.springfox</groupId>
  86. <artifactId>springfox-swagger2</artifactId>
  87. <version>${swagger.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>io.springfox</groupId>
  91. <artifactId>springfox-swagger-ui</artifactId>
  92. <version>${swagger.version}</version>
  93. </dependency>
  94. <!--JWT-->
  95. <dependency>
  96. <groupId>io.jsonwebtoken</groupId>
  97. <artifactId>jjwt</artifactId>
  98. <version>${jwt.version}</version>
  99. </dependency>
  100. <!--服务发现客户端-->
  101. <dependency>
  102. <groupId>org.springframework.cloud</groupId>
  103. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  104. </dependency>
  105. <!--服务熔断降级组件-->
  106. <dependency>
  107. <groupId>org.springframework.cloud</groupId>
  108. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  109. </dependency>
  110. <!--Mybatis Plus依赖-->
  111. <dependency>
  112. <groupId>com.baomidou</groupId>
  113. <artifactId>mybatis-plus-boot-starter</artifactId>
  114. <version>${mybatis.plus.version}</version>
  115. </dependency>
  116. <!--Feign依赖-->
  117. <dependency>
  118. <groupId>org.springframework.cloud</groupId>
  119. <artifactId>spring-cloud-starter-openfeign</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.mapstruct</groupId>
  123. <artifactId>mapstruct</artifactId>
  124. <version>${org.mapstruct.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.mapstruct</groupId>
  128. <artifactId>mapstruct-processor</artifactId>
  129. <version>${org.mapstruct.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.projectlombok</groupId>
  133. <artifactId>lombok</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.shardingsphere</groupId>
  137. <artifactId>sharding-jdbc-core</artifactId>
  138. <version>4.0.0-RC1</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.poteviohealth.cgp</groupId>
  142. <artifactId>common</artifactId>
  143. <version>1.1.0-SNAPSHOT</version>
  144. </dependency>
  145. <!--Apache 通用文件处理框架[必需]-->
  146. <dependency>
  147. <groupId>commons-io</groupId>
  148. <artifactId>commons-io</artifactId>
  149. <version>2.7</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.poi</groupId>
  153. <artifactId>poi</artifactId>
  154. <version>3.17</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.poi</groupId>
  158. <artifactId>poi-ooxml</artifactId>
  159. <version>3.17</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.xuxueli</groupId>
  163. <artifactId>xxl-job-core</artifactId>
  164. <version>${xxl-job-core.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.github.javen205</groupId>
  168. <artifactId>IJPay-WxPay</artifactId>
  169. <version>2.6.4</version>
  170. </dependency>
  171. </dependencies>
  172. <dependencyManagement>
  173. <dependencies>
  174. <dependency>
  175. <groupId>org.springframework.cloud</groupId>
  176. <artifactId>spring-cloud-dependencies</artifactId>
  177. <version>${spring.cloud.version}</version>
  178. <type>pom</type>
  179. <scope>import</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.springframework.boot</groupId>
  183. <artifactId>spring-boot-dependencies</artifactId>
  184. <version>${spring-boot.version}</version>
  185. <type>pom</type>
  186. <scope>import</scope>
  187. </dependency>
  188. </dependencies>
  189. </dependencyManagement>
  190. <profiles>
  191. <profile>
  192. <id>develop</id>
  193. <properties>
  194. <package.environment>develop</package.environment>
  195. </properties>
  196. <activation>
  197. <activeByDefault>true</activeByDefault>
  198. </activation>
  199. </profile>
  200. <profile>
  201. <id>uat</id>
  202. <properties>
  203. <package.environment>uat</package.environment>
  204. </properties>
  205. </profile>
  206. <profile>
  207. <id>production</id>
  208. <properties>
  209. <package.environment>production</package.environment>
  210. </properties>
  211. </profile>
  212. </profiles>
  213. <build>
  214. <resources>
  215. <resource>
  216. <directory>src/main/resources/${package.environment}</directory>
  217. <filtering>true</filtering>
  218. </resource>
  219. <resource>
  220. <directory>src/main/java</directory>
  221. <filtering>false</filtering>
  222. <includes>
  223. <include>**/xml/*.xml</include>
  224. </includes>
  225. </resource>
  226. <resource>
  227. <directory>src/main/resources</directory>
  228. </resource>
  229. </resources>
  230. <pluginManagement>
  231. <plugins>
  232. <plugin>
  233. <groupId>org.springframework.boot</groupId>
  234. <artifactId>spring-boot-maven-plugin</artifactId>
  235. <version>${spring.boot.version}</version>
  236. <executions>
  237. <execution>
  238. <goals>
  239. <goal>repackage</goal>
  240. </goals>
  241. </execution>
  242. </executions>
  243. </plugin>
  244. </plugins>
  245. </pluginManagement>
  246. <plugins>
  247. <plugin>
  248. <groupId>org.springframework.boot</groupId>
  249. <artifactId>spring-boot-maven-plugin</artifactId>
  250. <version>${spring-boot.version}</version>
  251. <configuration>
  252. <!--无此配置,devtools不会生效-->
  253. <fork>true</fork>
  254. </configuration>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-compiler-plugin</artifactId>
  259. <version>3.5.1</version>
  260. <configuration>
  261. <source>1.8</source>
  262. <target>1.8</target>
  263. <encoding>UTF-8</encoding>
  264. </configuration>
  265. </plugin>
  266. </plugins>
  267. </build>
  268. </project>