pom.xml 7.6 KB

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