pom.xml 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.3.2.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.yunzhi</groupId>
  12. <artifactId>serivce-template</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>demo</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-test</artifactId>
  27. <scope>test</scope>
  28. <exclusions>
  29. <exclusion>
  30. <groupId>org.junit.vintage</groupId>
  31. <artifactId>junit-vintage-engine</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <!--mysql start-->
  36. <dependency>
  37. <groupId>mysql</groupId>
  38. <artifactId>mysql-connector-java</artifactId>
  39. <scope>runtime</scope>
  40. </dependency>
  41. <!--mysql end-->
  42. <!--mybatis-plus start-->
  43. <dependency>
  44. <groupId>com.baomidou</groupId>
  45. <artifactId>mybatis-plus-boot-starter</artifactId>
  46. <version>3.1.1</version>
  47. </dependency>
  48. <!--mybatis-plus end-->
  49. <!--fastjson start-->
  50. <dependency>
  51. <groupId>com.alibaba</groupId>
  52. <artifactId>fastjson</artifactId>
  53. <version>1.2.56</version>
  54. </dependency>
  55. <!--fastjson end-->
  56. <!--jwt start-->
  57. <dependency>
  58. <groupId>io.jsonwebtoken</groupId>
  59. <artifactId>jjwt-api</artifactId>
  60. <version>0.11.2</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>io.jsonwebtoken</groupId>
  64. <artifactId>jjwt-impl</artifactId>
  65. <version>0.11.2</version>
  66. <scope>runtime</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>io.jsonwebtoken</groupId>
  70. <artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred -->
  71. <version>0.11.2</version>
  72. <scope>runtime</scope>
  73. </dependency>
  74. <!--jwt end-->
  75. <!--oss start-->
  76. <dependency>
  77. <groupId>com.aliyun.oss</groupId>
  78. <artifactId>aliyun-sdk-oss</artifactId>
  79. <version>2.8.3</version>
  80. </dependency>
  81. <!--oss end-->
  82. <dependency>
  83. <groupId>com.aliyun</groupId>
  84. <artifactId>aliyun-java-sdk-core</artifactId>
  85. <version>[4.4.9,5.0.0)</version>
  86. </dependency>
  87. <!--excel start-->
  88. <dependency>
  89. <groupId>com.alibaba</groupId>
  90. <artifactId>easyexcel</artifactId>
  91. <version>2.0.4</version>
  92. </dependency>
  93. <!--excel end-->
  94. <!--weixin-miniapp start-->
  95. <dependency>
  96. <groupId>com.github.binarywang</groupId>
  97. <artifactId>weixin-java-miniapp</artifactId>
  98. <version>3.8.0</version>
  99. </dependency>
  100. <!--weixin-miniapp start-->
  101. <!--lombok start-->
  102. <dependency>
  103. <groupId>org.projectlombok</groupId>
  104. <artifactId>lombok</artifactId>
  105. <optional>true</optional>
  106. </dependency>
  107. <!--lombok end-->
  108. <!--swagger start-->
  109. <dependency>
  110. <groupId>io.springfox</groupId>
  111. <artifactId>springfox-boot-starter</artifactId>
  112. <version>3.0.0</version>
  113. </dependency>
  114. <!--swagger end-->
  115. </dependencies>
  116. <profiles>
  117. <profile>
  118. <id>dev</id>
  119. <properties>
  120. <profileActive>dev</profileActive>
  121. </properties>
  122. <activation>
  123. <activeByDefault>true</activeByDefault>
  124. </activation>
  125. <build>
  126. <plugins>
  127. <plugin>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-maven-plugin</artifactId>
  130. </plugin>
  131. </plugins>
  132. <resources>
  133. <resource>
  134. <directory>src/main/resources</directory>
  135. <filtering>true</filtering>
  136. </resource>
  137. </resources>
  138. </build>
  139. </profile>
  140. <profile>
  141. <id>prod</id>
  142. <properties>
  143. <profileActive>prod</profileActive>
  144. </properties>
  145. <activation>
  146. <activeByDefault>false</activeByDefault>
  147. </activation>
  148. <build>
  149. <plugins>
  150. <plugin>
  151. <groupId>org.springframework.boot</groupId>
  152. <artifactId>spring-boot-maven-plugin</artifactId>
  153. </plugin>
  154. <!-- 跳过测试 -->
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-surefire-plugin</artifactId>
  158. <configuration>
  159. <skipTests>true</skipTests>
  160. <testFailureIgnore>true</testFailureIgnore>
  161. </configuration>
  162. </plugin>
  163. </plugins>
  164. <resources>
  165. <resource>
  166. <directory>src/main/resources</directory>
  167. <filtering>true</filtering>
  168. <excludes>
  169. <exclude>application.yml</exclude>
  170. <exclude>application-*.yml</exclude>
  171. </excludes>
  172. </resource>
  173. <resource>
  174. <directory>src/main/resources</directory>
  175. <filtering>true</filtering>
  176. <includes>
  177. <include>application.yml</include>
  178. <include>application-${profileActive}.yml</include>
  179. </includes>
  180. <targetPath>${project.build.directory}/config</targetPath>
  181. </resource>
  182. </resources>
  183. </build>
  184. </profile>
  185. </profiles>
  186. </project>