pom.xml 5.4KB

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