pom.xml 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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.shigongli</groupId>
  12. <artifactId>shigongli</artifactId>
  13. <version>0.0.1</version>
  14. <name>shigongli</name>
  15. <description>ShiGongli Service</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. <dependency>
  102. <groupId>com.github.binarywang</groupId>
  103. <artifactId>weixin-java-mp</artifactId>
  104. <version>3.8.0</version>
  105. </dependency>
  106. <!--lombok start-->
  107. <dependency>
  108. <groupId>org.projectlombok</groupId>
  109. <artifactId>lombok</artifactId>
  110. <optional>true</optional>
  111. </dependency>
  112. <!--lombok end-->
  113. <!--swagger start-->
  114. <dependency>
  115. <groupId>io.springfox</groupId>
  116. <artifactId>springfox-boot-starter</artifactId>
  117. <version>3.0.0</version>
  118. </dependency>
  119. <!--swagger end-->
  120. </dependencies>
  121. <profiles>
  122. <profile>
  123. <id>dev</id>
  124. <properties>
  125. <profileActive>dev</profileActive>
  126. </properties>
  127. <activation>
  128. <activeByDefault>true</activeByDefault>
  129. </activation>
  130. <build>
  131. <plugins>
  132. <plugin>
  133. <groupId>org.springframework.boot</groupId>
  134. <artifactId>spring-boot-maven-plugin</artifactId>
  135. </plugin>
  136. </plugins>
  137. <resources>
  138. <resource>
  139. <directory>src/main/resources</directory>
  140. <filtering>true</filtering>
  141. </resource>
  142. </resources>
  143. </build>
  144. </profile>
  145. <profile>
  146. <id>prod</id>
  147. <properties>
  148. <profileActive>prod</profileActive>
  149. </properties>
  150. <activation>
  151. <activeByDefault>false</activeByDefault>
  152. </activation>
  153. <build>
  154. <plugins>
  155. <plugin>
  156. <groupId>org.springframework.boot</groupId>
  157. <artifactId>spring-boot-maven-plugin</artifactId>
  158. </plugin>
  159. <!-- 跳过测试 -->
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-surefire-plugin</artifactId>
  163. <configuration>
  164. <skipTests>true</skipTests>
  165. <testFailureIgnore>true</testFailureIgnore>
  166. </configuration>
  167. </plugin>
  168. </plugins>
  169. <resources>
  170. <resource>
  171. <directory>src/main/resources</directory>
  172. <filtering>true</filtering>
  173. <excludes>
  174. <exclude>application.yml</exclude>
  175. <exclude>application-*.yml</exclude>
  176. </excludes>
  177. </resource>
  178. <resource>
  179. <directory>src/main/resources</directory>
  180. <filtering>true</filtering>
  181. <includes>
  182. <include>application.yml</include>
  183. <include>application-${profileActive}.yml</include>
  184. </includes>
  185. <targetPath>${project.build.directory}/config</targetPath>
  186. </resource>
  187. </resources>
  188. </build>
  189. </profile>
  190. </profiles>
  191. </project>