pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>picc</artifactId>
  7. <groupId>com.jpsoft</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>weixin-middleware</artifactId>
  12. <packaging>war</packaging>
  13. <properties>
  14. <swagger2.version>2.7.0</swagger2.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-tomcat</artifactId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-test</artifactId>
  30. <scope>test</scope>
  31. <exclusions>
  32. <exclusion>
  33. <groupId>org.junit.vintage</groupId>
  34. <artifactId>junit-vintage-engine</artifactId>
  35. </exclusion>
  36. </exclusions>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-aop</artifactId>
  41. </dependency>
  42. <!-- swagger ui begin-->
  43. <dependency>
  44. <groupId>io.springfox</groupId>
  45. <artifactId>springfox-swagger2</artifactId>
  46. <version>${swagger2.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>io.springfox</groupId>
  50. <artifactId>springfox-swagger-ui</artifactId>
  51. <version>${swagger2.version}</version>
  52. </dependency>
  53. <!-- swagger ui end-->
  54. <!--logging start-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-logging</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.lazyluke</groupId>
  61. <artifactId>log4jdbc-remix</artifactId>
  62. <version>0.2.7</version>
  63. </dependency>
  64. <!--logging end-->
  65. <!-- <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-actuator</artifactId>
  68. </dependency>-->
  69. <!-- 数据库相关 start-->
  70. <dependency>
  71. <groupId>org.mybatis.spring.boot</groupId>
  72. <artifactId>mybatis-spring-boot-starter</artifactId>
  73. <version>2.0.1</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>mysql</groupId>
  77. <artifactId>mysql-connector-java</artifactId>
  78. <scope>runtime</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>com.github.pagehelper</groupId>
  82. <artifactId>pagehelper-spring-boot-starter</artifactId>
  83. <version>LATEST</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.alibaba</groupId>
  87. <artifactId>druid-spring-boot-starter</artifactId>
  88. <version>1.1.10</version>
  89. </dependency>
  90. <!-- 数据库相关 end-->
  91. <!-- veloctiy -->
  92. <dependency>
  93. <groupId>org.apache.velocity</groupId>
  94. <artifactId>velocity</artifactId>
  95. <version>1.7</version>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-maven-plugin</artifactId>
  103. <configuration>
  104. <fork>true</fork>
  105. <addResources>true</addResources>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-surefire-plugin</artifactId>
  111. <version>2.16</version>
  112. <configuration>
  113. <includes>
  114. <include>**/*TestForPack.java</include>
  115. </includes>
  116. <argLine>-Xmx256M</argLine>
  117. </configuration>
  118. <dependencies>
  119. <dependency>
  120. <groupId>org.apache.maven.surefire</groupId>
  121. <artifactId>surefire-junit47</artifactId>
  122. <version>2.16</version>
  123. </dependency>
  124. </dependencies>
  125. </plugin>
  126. </plugins>
  127. </build>
  128. <profiles>
  129. <profile>
  130. <id>dev</id>
  131. <dependencies>
  132. <dependency>
  133. <groupId>org.springframework.boot</groupId>
  134. <artifactId>spring-boot-starter-tomcat</artifactId>
  135. </dependency>
  136. </dependencies>
  137. <properties>
  138. <active.profile>dev</active.profile>
  139. </properties>
  140. <activation>
  141. <activeByDefault>true</activeByDefault>
  142. </activation>
  143. </profile>
  144. <profile>
  145. <id>test</id>
  146. <dependencies>
  147. <dependency>
  148. <groupId>javax.servlet</groupId>
  149. <artifactId>javax.servlet-api</artifactId>
  150. <version>3.1.0</version>
  151. <scope>provided</scope>
  152. </dependency>
  153. </dependencies>
  154. <properties>
  155. <active.profile>test</active.profile>
  156. </properties>
  157. </profile>
  158. <profile>
  159. <id>production</id>
  160. <properties>
  161. <active.profile>production</active.profile>
  162. </properties>
  163. <dependencies>
  164. <dependency>
  165. <groupId>javax.servlet</groupId>
  166. <artifactId>javax.servlet-api</artifactId>
  167. <version>3.1.0</version>
  168. <scope>provided</scope>
  169. </dependency>
  170. </dependencies>
  171. </profile>
  172. </profiles>
  173. </project>