pom.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. </dependencies>
  92. <build>
  93. <plugins>
  94. <plugin>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-maven-plugin</artifactId>
  97. <configuration>
  98. <fork>true</fork>
  99. <addResources>true</addResources>
  100. </configuration>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-surefire-plugin</artifactId>
  105. <version>2.16</version>
  106. <configuration>
  107. <includes>
  108. <include>**/*TestForPack.java</include>
  109. </includes>
  110. <argLine>-Xmx256M</argLine>
  111. </configuration>
  112. <dependencies>
  113. <dependency>
  114. <groupId>org.apache.maven.surefire</groupId>
  115. <artifactId>surefire-junit47</artifactId>
  116. <version>2.16</version>
  117. </dependency>
  118. </dependencies>
  119. </plugin>
  120. </plugins>
  121. </build>
  122. <profiles>
  123. <profile>
  124. <id>dev</id>
  125. <dependencies>
  126. <dependency>
  127. <groupId>org.springframework.boot</groupId>
  128. <artifactId>spring-boot-starter-tomcat</artifactId>
  129. </dependency>
  130. </dependencies>
  131. <properties>
  132. <active.profile>dev</active.profile>
  133. </properties>
  134. <activation>
  135. <activeByDefault>true</activeByDefault>
  136. </activation>
  137. </profile>
  138. <profile>
  139. <id>test</id>
  140. <dependencies>
  141. <dependency>
  142. <groupId>javax.servlet</groupId>
  143. <artifactId>javax.servlet-api</artifactId>
  144. <version>3.1.0</version>
  145. <scope>provided</scope>
  146. </dependency>
  147. </dependencies>
  148. <properties>
  149. <active.profile>test</active.profile>
  150. </properties>
  151. </profile>
  152. <profile>
  153. <id>production</id>
  154. <properties>
  155. <active.profile>production</active.profile>
  156. </properties>
  157. <dependencies>
  158. <dependency>
  159. <groupId>javax.servlet</groupId>
  160. <artifactId>javax.servlet-api</artifactId>
  161. <version>3.1.0</version>
  162. <scope>provided</scope>
  163. </dependency>
  164. </dependencies>
  165. </profile>
  166. </profiles>
  167. </project>