pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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>jar</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. </dependencies>
  66. <build>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-maven-plugin</artifactId>
  71. <configuration>
  72. <fork>true</fork>
  73. <addResources>true</addResources>
  74. </configuration>
  75. </plugin>
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-surefire-plugin</artifactId>
  79. <version>2.16</version>
  80. <configuration>
  81. <includes>
  82. <include>**/*TestForPack.java</include>
  83. </includes>
  84. <argLine>-Xmx256M</argLine>
  85. </configuration>
  86. <dependencies>
  87. <dependency>
  88. <groupId>org.apache.maven.surefire</groupId>
  89. <artifactId>surefire-junit47</artifactId>
  90. <version>2.16</version>
  91. </dependency>
  92. </dependencies>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. <profiles>
  97. <profile>
  98. <id>dev</id>
  99. <dependencies>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-tomcat</artifactId>
  103. </dependency>
  104. </dependencies>
  105. <properties>
  106. <active.profile>dev</active.profile>
  107. </properties>
  108. <activation>
  109. <activeByDefault>true</activeByDefault>
  110. </activation>
  111. </profile>
  112. <profile>
  113. <id>test</id>
  114. <dependencies>
  115. <dependency>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-starter-tomcat</artifactId>
  118. </dependency>
  119. </dependencies>
  120. <properties>
  121. <active.profile>test</active.profile>
  122. </properties>
  123. </profile>
  124. <profile>
  125. <id>production</id>
  126. <properties>
  127. <active.profile>production</active.profile>
  128. </properties>
  129. <dependencies>
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-starter-tomcat</artifactId>
  133. </dependency>
  134. </dependencies>
  135. </profile>
  136. </profiles>
  137. </project>