pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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>statistics</artifactId>
  31. <version>1.2.0-SNAPSHOT</version>
  32. <name>cgp-statistics</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. <knife4j.version>3.0.2</knife4j.version>
  47. <skipTests>true</skipTests>
  48. <xxl-job-core.version>2.2.0</xxl-job-core.version>
  49. </properties>
  50. <dependencies>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-test</artifactId>
  58. <scope>test</scope>
  59. <exclusions>
  60. <exclusion>
  61. <groupId>org.junit.vintage</groupId>
  62. <artifactId>junit-vintage-engine</artifactId>
  63. </exclusion>
  64. </exclusions>
  65. </dependency>
  66. <!--mysql驱动[必须],注意8.0.15版本驱动配置和之前版本不一致-->
  67. <dependency>
  68. <groupId>mysql</groupId>
  69. <artifactId>mysql-connector-java</artifactId>
  70. <scope>runtime</scope>
  71. </dependency>
  72. <!--JSON处理框架[必需]-->
  73. <dependency>
  74. <groupId>com.alibaba</groupId>
  75. <artifactId>fastjson</artifactId>
  76. <version>${alibaba.fastjson}</version>
  77. </dependency>
  78. <!--连接资源池框架[必需]-->
  79. <dependency>
  80. <groupId>com.alibaba</groupId>
  81. <artifactId>druid-spring-boot-starter</artifactId>
  82. <version>${alibaba.druid}</version>
  83. </dependency>
  84. <!--Swagger2[必需]-->
  85. <!--<dependency>-->
  86. <!--<groupId>io.springfox</groupId>-->
  87. <!--<artifactId>springfox-swagger2</artifactId>-->
  88. <!--<version>${swagger.version}</version>-->
  89. <!--</dependency>-->
  90. <!--<dependency>-->
  91. <!--<groupId>io.springfox</groupId>-->
  92. <!--<artifactId>springfox-swagger-ui</artifactId>-->
  93. <!--<version>${swagger.version}</version>-->
  94. <!--</dependency>-->
  95. <dependency>
  96. <groupId>com.github.xiaoymin</groupId>
  97. <artifactId>knife4j-spring-boot-starter</artifactId>
  98. </dependency>
  99. <!--JWT-->
  100. <dependency>
  101. <groupId>io.jsonwebtoken</groupId>
  102. <artifactId>jjwt</artifactId>
  103. <version>${jwt.version}</version>
  104. </dependency>
  105. <!--服务发现客户端-->
  106. <dependency>
  107. <groupId>org.springframework.cloud</groupId>
  108. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  109. </dependency>
  110. <!--服务熔断降级组件-->
  111. <dependency>
  112. <groupId>org.springframework.cloud</groupId>
  113. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  114. </dependency>
  115. <!--Mybatis Plus依赖-->
  116. <dependency>
  117. <groupId>com.baomidou</groupId>
  118. <artifactId>mybatis-plus-boot-starter</artifactId>
  119. <version>${mybatis.plus.version}</version>
  120. </dependency>
  121. <!--Feign依赖-->
  122. <dependency>
  123. <groupId>org.springframework.cloud</groupId>
  124. <artifactId>spring-cloud-starter-openfeign</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.mapstruct</groupId>
  128. <artifactId>mapstruct</artifactId>
  129. <version>${org.mapstruct.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.mapstruct</groupId>
  133. <artifactId>mapstruct-processor</artifactId>
  134. <version>${org.mapstruct.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.projectlombok</groupId>
  138. <artifactId>lombok</artifactId>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.shardingsphere</groupId>
  142. <artifactId>sharding-jdbc-core</artifactId>
  143. <version>4.0.1</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.poteviohealth.cgp</groupId>
  147. <artifactId>common</artifactId>
  148. <version>1.2.0-SNAPSHOT</version>
  149. </dependency>
  150. <!--Apache 通用文件处理框架[必需]-->
  151. <dependency>
  152. <groupId>commons-io</groupId>
  153. <artifactId>commons-io</artifactId>
  154. <version>2.7</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.poi</groupId>
  158. <artifactId>poi</artifactId>
  159. <version>3.17</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.poi</groupId>
  163. <artifactId>poi-ooxml</artifactId>
  164. <version>3.17</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.xuxueli</groupId>
  168. <artifactId>xxl-job-core</artifactId>
  169. <version>${xxl-job-core.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.github.javen205</groupId>
  173. <artifactId>IJPay-WxPay</artifactId>
  174. <version>2.6.4</version>
  175. </dependency>
  176. <!-- 极光推送-->
  177. <dependency>
  178. <groupId>cn.jpush.api</groupId>
  179. <artifactId>jpush-client</artifactId>
  180. <version>3.4.7</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>com.github.kuaidi100-api</groupId>
  184. <artifactId>sdk</artifactId>
  185. <version>1.0.2</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.dameng</groupId>
  189. <artifactId>DmJdbcDriver18</artifactId>
  190. <version>8.1.2.141</version>
  191. </dependency>
  192. </dependencies>
  193. <dependencyManagement>
  194. <dependencies>
  195. <dependency>
  196. <groupId>org.springframework.cloud</groupId>
  197. <artifactId>spring-cloud-dependencies</artifactId>
  198. <version>${spring.cloud.version}</version>
  199. <type>pom</type>
  200. <scope>import</scope>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.springframework.boot</groupId>
  204. <artifactId>spring-boot-dependencies</artifactId>
  205. <version>${spring-boot.version}</version>
  206. <type>pom</type>
  207. <scope>import</scope>
  208. </dependency>
  209. <dependency>
  210. <groupId>com.github.xiaoymin</groupId>
  211. <artifactId>knife4j-micro-spring-boot-starter</artifactId>
  212. <version>${knife4j.version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>com.github.xiaoymin</groupId>
  216. <artifactId>knife4j-spring-boot-starter</artifactId>
  217. <version>${knife4j.version}</version>
  218. </dependency>
  219. </dependencies>
  220. </dependencyManagement>
  221. <profiles>
  222. <profile>
  223. <id>develop</id>
  224. <properties>
  225. <package.environment>develop</package.environment>
  226. </properties>
  227. <activation>
  228. <activeByDefault>true</activeByDefault>
  229. </activation>
  230. </profile>
  231. <profile>
  232. <id>uat</id>
  233. <properties>
  234. <package.environment>uat</package.environment>
  235. </properties>
  236. </profile>
  237. <profile>
  238. <id>production</id>
  239. <properties>
  240. <package.environment>production</package.environment>
  241. </properties>
  242. </profile>
  243. <profile>
  244. <id>zky</id>
  245. <properties>
  246. <package.environment>zky</package.environment>
  247. </properties>
  248. </profile>
  249. <profile>
  250. <id>dm</id>
  251. <properties>
  252. <package.environment>dm</package.environment>
  253. </properties>
  254. </profile>
  255. <profile>
  256. <id>rizhao</id>
  257. <properties>
  258. <package.environment>rizhao</package.environment>
  259. </properties>
  260. </profile>
  261. <profile>
  262. <id>kyy</id>
  263. <properties>
  264. <package.environment>kyy</package.environment>
  265. </properties>
  266. </profile>
  267. <profile>
  268. <id>pre</id>
  269. <properties>
  270. <package.environment>pre</package.environment>
  271. </properties>
  272. </profile>
  273. </profiles>
  274. <build>
  275. <resources>
  276. <resource>
  277. <directory>src/main/resources/${package.environment}</directory>
  278. <filtering>true</filtering>
  279. </resource>
  280. <resource>
  281. <directory>src/main/java</directory>
  282. <filtering>false</filtering>
  283. <includes>
  284. <include>**/xml/*.xml</include>
  285. </includes>
  286. </resource>
  287. <resource>
  288. <directory>src/main/resources</directory>
  289. </resource>
  290. </resources>
  291. <pluginManagement>
  292. <plugins>
  293. <plugin>
  294. <groupId>org.springframework.boot</groupId>
  295. <artifactId>spring-boot-maven-plugin</artifactId>
  296. <version>${spring.boot.version}</version>
  297. <executions>
  298. <execution>
  299. <goals>
  300. <goal>repackage</goal>
  301. </goals>
  302. </execution>
  303. </executions>
  304. </plugin>
  305. </plugins>
  306. </pluginManagement>
  307. <plugins>
  308. <plugin>
  309. <groupId>org.springframework.boot</groupId>
  310. <artifactId>spring-boot-maven-plugin</artifactId>
  311. <version>${spring-boot.version}</version>
  312. <configuration>
  313. <!--无此配置,devtools不会生效-->
  314. <fork>true</fork>
  315. </configuration>
  316. </plugin>
  317. <plugin>
  318. <groupId>org.apache.maven.plugins</groupId>
  319. <artifactId>maven-compiler-plugin</artifactId>
  320. <version>3.5.1</version>
  321. <configuration>
  322. <source>1.8</source>
  323. <target>1.8</target>
  324. <encoding>UTF-8</encoding>
  325. </configuration>
  326. </plugin>
  327. </plugins>
  328. </build>
  329. </project>