pom.xml 5.3KB

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