pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>cn.vbdsm</groupId>
  6. <artifactId>vbdsm-statistics</artifactId>
  7. <version>2.0.0</version>
  8. <packaging>jar</packaging>
  9. <name>vbdsm-statistics</name>
  10. <parent>
  11. <groupId>org.springframework.boot</groupId>
  12. <artifactId>spring-boot-starter-parent</artifactId>
  13. <version>1.5.13.RELEASE</version>
  14. </parent>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  18. <sharding-jdbc.version>3.0.0.M1</sharding-jdbc.version>
  19. <druid.version>1.1.1</druid.version>
  20. <java.version>1.7</java.version>
  21. </properties>
  22. <profiles>
  23. <profile>
  24. <id>local</id>
  25. <activation>
  26. <activeByDefault>false</activeByDefault>
  27. </activation>
  28. <properties>
  29. <profiles.active>dev</profiles.active>
  30. </properties>
  31. </profile>
  32. <profile>
  33. <id>test</id>
  34. <activation>
  35. <activeByDefault>true</activeByDefault>
  36. </activation>
  37. <properties>
  38. <profiles.active>test</profiles.active>
  39. </properties>
  40. </profile>
  41. <profile>
  42. <id>product</id>
  43. <activation>
  44. <activeByDefault>false</activeByDefault>
  45. </activation>
  46. <properties>
  47. <profiles.active>prod</profiles.active>
  48. </properties>
  49. </profile>
  50. </profiles>
  51. <dependencies>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-aop</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>io.shardingsphere</groupId>
  58. <artifactId>sharding-jdbc</artifactId>
  59. <version>${sharding-jdbc.version}</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework</groupId>
  63. <artifactId>spring-jdbc</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-jdbc</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-web</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>mysql</groupId>
  75. <artifactId>mysql-connector-java</artifactId>
  76. <version>8.0.11</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.mybatis</groupId>
  80. <artifactId>mybatis-spring</artifactId>
  81. <version>1.3.0</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.mybatis</groupId>
  85. <artifactId>mybatis</artifactId>
  86. <version>3.4.0</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.alibaba</groupId>
  90. <artifactId>druid</artifactId>
  91. <version>${druid.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.projectlombok</groupId>
  95. <artifactId>lombok</artifactId>
  96. <optional>true</optional>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.alibaba</groupId>
  100. <artifactId>fastjson</artifactId>
  101. <version>1.2.4</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.apache.commons</groupId>
  105. <artifactId>commons-lang3</artifactId>
  106. <version>3.3.2</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-test</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>javax.persistence</groupId>
  115. <artifactId>persistence-api</artifactId>
  116. <version>1.0</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>javax.core.common</groupId>
  120. <artifactId>core-common-utils</artifactId>
  121. <version>1.0</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-starter-data-redis</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework.session</groupId>
  129. <artifactId>spring-session-data-redis</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>cn.vbdsm</groupId>
  133. <artifactId>vbdsm-api</artifactId>
  134. <version>2.0.0</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.xuxueli</groupId>
  138. <artifactId>xxl-job-core</artifactId>
  139. <version>1.9.1</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>commons-beanutils</groupId>
  143. <artifactId>commons-beanutils-core</artifactId>
  144. <version>1.8.3</version>
  145. </dependency>
  146. </dependencies>
  147. <build>
  148. <resources>
  149. <resource>
  150. <directory>src/main/resources</directory>
  151. <filtering>true</filtering>
  152. <excludes>
  153. <exclude>config/application-*.yml</exclude>
  154. </excludes>
  155. </resource>
  156. <resource>
  157. <directory>src/main/resources</directory>
  158. <filtering>true</filtering>
  159. <includes>
  160. <include>config/application-${profiles.active}.yml</include>
  161. </includes>
  162. </resource>
  163. </resources>
  164. <plugins>
  165. <plugin>
  166. <groupId>org.codehaus.mojo</groupId>
  167. <artifactId>exec-maven-plugin</artifactId>
  168. <configuration>
  169. <skip>${skipTests}</skip>
  170. </configuration>
  171. <executions>
  172. <execution>
  173. <phase>test</phase>
  174. <goals>
  175. <goal>java</goal>
  176. </goals>
  177. <configuration>
  178. <mainClass>cn.vbdsm.statistics.StatisticsApplication</mainClass>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.springframework.boot</groupId>
  185. <artifactId>spring-boot-maven-plugin</artifactId>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.apache.maven.plugins</groupId>
  189. <artifactId>maven-compiler-plugin</artifactId>
  190. <configuration>
  191. <source>${java.version}</source>
  192. <target>${java.version}</target>
  193. <compilerVersion>${java.version}</compilerVersion>
  194. <encoding>UTF-8</encoding>
  195. <compilerArgument>-Xlint:unchecked</compilerArgument>
  196. </configuration>
  197. </plugin>
  198. </plugins>
  199. </build>
  200. </project>