pom.xml 7.9 KB

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