pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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>integrate</artifactId>
  31. <version>1.1.0-SNAPSHOT</version>
  32. <name>cgp-integrate</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>org.springframework.cloud</groupId>
  163. <artifactId>spring-cloud-commons</artifactId>
  164. <version>2.2.2.RELEASE</version>
  165. <scope>compile</scope>
  166. </dependency>
  167. </dependencies>
  168. <dependencyManagement>
  169. <dependencies>
  170. <dependency>
  171. <groupId>org.springframework.cloud</groupId>
  172. <artifactId>spring-cloud-dependencies</artifactId>
  173. <version>${spring.cloud.version}</version>
  174. <type>pom</type>
  175. <scope>import</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework.boot</groupId>
  179. <artifactId>spring-boot-dependencies</artifactId>
  180. <version>${spring-boot.version}</version>
  181. <type>pom</type>
  182. <scope>import</scope>
  183. </dependency>
  184. </dependencies>
  185. </dependencyManagement>
  186. <profiles>
  187. <profile>
  188. <id>develop</id>
  189. <properties>
  190. <package.environment>develop</package.environment>
  191. </properties>
  192. <activation>
  193. <activeByDefault>true</activeByDefault>
  194. </activation>
  195. </profile>
  196. <profile>
  197. <id>uat</id>
  198. <properties>
  199. <package.environment>uat</package.environment>
  200. </properties>
  201. </profile>
  202. <profile>
  203. <id>production</id>
  204. <properties>
  205. <package.environment>production</package.environment>
  206. </properties>
  207. </profile>
  208. </profiles>
  209. <build>
  210. <resources>
  211. <resource>
  212. <directory>src/main/resources/${package.environment}</directory>
  213. <filtering>true</filtering>
  214. </resource>
  215. <resource>
  216. <directory>src/main/java</directory>
  217. <filtering>false</filtering>
  218. <includes>
  219. <include>**/xml/*.xml</include>
  220. </includes>
  221. </resource>
  222. <resource>
  223. <directory>src/main/resources</directory>
  224. </resource>
  225. </resources>
  226. <pluginManagement>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.springframework.boot</groupId>
  230. <artifactId>spring-boot-maven-plugin</artifactId>
  231. <version>${spring.boot.version}</version>
  232. <executions>
  233. <execution>
  234. <goals>
  235. <goal>repackage</goal>
  236. </goals>
  237. </execution>
  238. </executions>
  239. </plugin>
  240. </plugins>
  241. </pluginManagement>
  242. <plugins>
  243. <plugin>
  244. <groupId>org.springframework.boot</groupId>
  245. <artifactId>spring-boot-maven-plugin</artifactId>
  246. <version>${spring-boot.version}</version>
  247. <configuration>
  248. <!--无此配置,devtools不会生效-->
  249. <fork>true</fork>
  250. </configuration>
  251. </plugin>
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-compiler-plugin</artifactId>
  255. <version>3.5.1</version>
  256. <configuration>
  257. <source>1.8</source>
  258. <target>1.8</target>
  259. <encoding>UTF-8</encoding>
  260. </configuration>
  261. </plugin>
  262. </plugins>
  263. </build>
  264. </project>