pom.xml 8.4 KB

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