123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. <log4j.version>2.17.0</log4j.version>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-test</artifactId>
  28. <scope>test</scope>
  29. <exclusions>
  30. <exclusion>
  31. <groupId>org.junit.vintage</groupId>
  32. <artifactId>junit-vintage-engine</artifactId>
  33. </exclusion>
  34. </exclusions>
  35. </dependency>
  36. <!--mysql start-->
  37. <dependency>
  38. <groupId>mysql</groupId>
  39. <artifactId>mysql-connector-java</artifactId>
  40. <scope>runtime</scope>
  41. </dependency>
  42. <!--mysql end-->
  43. <!--mybatis-plus start-->
  44. <dependency>
  45. <groupId>com.baomidou</groupId>
  46. <artifactId>mybatis-plus-boot-starter</artifactId>
  47. <version>3.1.1</version>
  48. </dependency>
  49. <!--mybatis-plus end-->
  50. <!--fastjson start-->
  51. <dependency>
  52. <groupId>com.alibaba</groupId>
  53. <artifactId>fastjson</artifactId>
  54. <version>1.2.56</version>
  55. </dependency>
  56. <!--fastjson end-->
  57. <!--oss start-->
  58. <dependency>
  59. <groupId>com.aliyun.oss</groupId>
  60. <artifactId>aliyun-sdk-oss</artifactId>
  61. <version>2.8.3</version>
  62. </dependency>
  63. <!--oss end-->
  64. <dependency>
  65. <groupId>com.aliyun</groupId>
  66. <artifactId>aliyun-java-sdk-core</artifactId>
  67. <version>[4.4.9,5.0.0)</version>
  68. </dependency>
  69. <!--excel start-->
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>easyexcel</artifactId>
  73. <version>2.0.4</version>
  74. </dependency>
  75. <!--excel end-->
  76. <!--weixin-miniapp start-->
  77. <dependency>
  78. <groupId>com.github.binarywang</groupId>
  79. <artifactId>weixin-java-miniapp</artifactId>
  80. <version>3.8.0</version>
  81. </dependency>
  82. <!--weixin-miniapp start-->
  83. <!--lombok start-->
  84. <dependency>
  85. <groupId>org.projectlombok</groupId>
  86. <artifactId>lombok</artifactId>
  87. <optional>true</optional>
  88. </dependency>
  89. <!--lombok end-->
  90. <!--swagger start-->
  91. <dependency>
  92. <groupId>io.springfox</groupId>
  93. <artifactId>springfox-boot-starter</artifactId>
  94. <version>3.0.0</version>
  95. </dependency>
  96. <!--swagger end-->
  97. <!-- shiro start-->
  98. <dependency>
  99. <groupId>org.apache.shiro</groupId>
  100. <artifactId>shiro-spring-boot-web-starter</artifactId>
  101. <version>1.8.0</version>
  102. </dependency>
  103. <!-- shiro end-->
  104. <!-- jwt start -->
  105. <dependency>
  106. <groupId>com.auth0</groupId>
  107. <artifactId>java-jwt</artifactId>
  108. <version>3.18.3</version>
  109. </dependency>
  110. <!-- end start -->
  111. </dependencies>
  112. <profiles>
  113. <profile>
  114. <id>dev</id>
  115. <properties>
  116. <profileActive>dev</profileActive>
  117. </properties>
  118. <activation>
  119. <activeByDefault>true</activeByDefault>
  120. </activation>
  121. <build>
  122. <plugins>
  123. <plugin>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-maven-plugin</artifactId>
  126. </plugin>
  127. </plugins>
  128. <resources>
  129. <resource>
  130. <directory>src/main/resources</directory>
  131. <filtering>true</filtering>
  132. </resource>
  133. </resources>
  134. </build>
  135. </profile>
  136. <profile>
  137. <id>prod</id>
  138. <properties>
  139. <profileActive>prod</profileActive>
  140. </properties>
  141. <activation>
  142. <activeByDefault>false</activeByDefault>
  143. </activation>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. </plugin>
  150. <!-- 跳过测试 -->
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-surefire-plugin</artifactId>
  154. <configuration>
  155. <skipTests>true</skipTests>
  156. <testFailureIgnore>true</testFailureIgnore>
  157. </configuration>
  158. </plugin>
  159. </plugins>
  160. <resources>
  161. <resource>
  162. <directory>src/main/resources</directory>
  163. <filtering>true</filtering>
  164. <excludes>
  165. <exclude>application.yml</exclude>
  166. <exclude>application-*.yml</exclude>
  167. </excludes>
  168. </resource>
  169. <resource>
  170. <directory>src/main/resources</directory>
  171. <filtering>true</filtering>
  172. <includes>
  173. <include>application.yml</include>
  174. <include>application-${profileActive}.yml</include>
  175. </includes>
  176. <targetPath>${project.build.directory}/config</targetPath>
  177. </resource>
  178. </resources>
  179. </build>
  180. </profile>
  181. </profiles>
  182. </project>