pom.xml 5.8KB

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