pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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.2.1.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>demo1</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>demo1</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <swagger2.version>2.7.0</swagger2.version>
  19. <jwts.version>0.11.2</jwts.version>
  20. <org.mapstruct.version>1.4.2.Final</org.mapstruct.version>
  21. <lombok.version>1.18.12</lombok.version>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. <exclusions>
  28. <exclusion>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-tomcat</artifactId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.mybatis.spring.boot</groupId>
  36. <artifactId>mybatis-spring-boot-starter</artifactId>
  37. <version>2.2.2</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>io.springfox</groupId>
  41. <artifactId>springfox-swagger2</artifactId>
  42. <version>${swagger2.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>io.springfox</groupId>
  46. <artifactId>springfox-swagger-ui</artifactId>
  47. <version>${swagger2.version}</version>
  48. </dependency>
  49. <!--整合Knife4j-->
  50. <dependency>
  51. <groupId>com.github.xiaoymin</groupId>
  52. <artifactId>knife4j-spring-boot-starter</artifactId>
  53. <version>2.0.4</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.github.pagehelper</groupId>
  57. <artifactId>pagehelper-spring-boot-starter</artifactId>
  58. <version>1.4.1</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.github.dozermapper</groupId>
  62. <artifactId>dozer-core</artifactId>
  63. <version>6.4.1</version>
  64. <scope>compile</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.mybatis.spring.boot</groupId>
  68. <artifactId>mybatis-spring-boot-starter</artifactId>
  69. <version>2.2.0</version>
  70. </dependency>
  71. <!--jwt start-->
  72. <dependency>
  73. <groupId>io.jsonwebtoken</groupId>
  74. <artifactId>jjwt-api</artifactId>
  75. <version>0.11.2</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>io.jsonwebtoken</groupId>
  79. <artifactId>jjwt-impl</artifactId>
  80. <version>${jwts.version}</version>
  81. <scope>runtime</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>io.jsonwebtoken</groupId>
  85. <artifactId>jjwt-jackson</artifactId>
  86. <version>${jwts.version}</version>
  87. <scope>runtime</scope>
  88. </dependency>
  89. <!--jwt end-->
  90. <dependency>
  91. <groupId>joda-time</groupId>
  92. <artifactId>joda-time</artifactId>
  93. <version>2.10.5</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>mysql</groupId>
  97. <artifactId>mysql-connector-java</artifactId>
  98. <scope>runtime</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-test</artifactId>
  103. <scope>test</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>cn.hutool</groupId>
  107. <artifactId>hutool-all</artifactId>
  108. <version>5.6.7</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.alibaba</groupId>
  112. <artifactId>druid-spring-boot-starter</artifactId>
  113. <version>1.2.8</version>
  114. </dependency>
  115. <!--缓存 start-->
  116. <dependency>
  117. <groupId>org.springframework.boot</groupId>
  118. <artifactId>spring-boot-starter-data-redis</artifactId>
  119. </dependency>
  120. <!--缓存 end-->
  121. <dependency>
  122. <groupId>mysql</groupId>
  123. <artifactId>mysql-connector-java</artifactId>
  124. <scope>runtime</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.lazyluke</groupId>
  128. <artifactId>log4jdbc-remix</artifactId>
  129. <version>0.2.7</version>
  130. </dependency>
  131. <!--支付相关-->
  132. <dependency>
  133. <groupId>com.github.javen205</groupId>
  134. <artifactId>IJPay-All</artifactId>
  135. <version>2.7.3</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.alipay.sdk</groupId>
  139. <artifactId>alipay-sdk-java</artifactId>
  140. <version>4.23.21.ALL</version>
  141. <exclusions>
  142. <exclusion>
  143. <artifactId>bcprov-jdk15on</artifactId>
  144. <groupId>org.bouncycastle</groupId>
  145. </exclusion>
  146. </exclusions>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.baomidou</groupId>
  150. <artifactId>mybatis-plus-boot-starter</artifactId>
  151. <version>3.4.3.4</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.baomidou</groupId>
  155. <artifactId>mybatis-plus-generator</artifactId>
  156. <version>3.5.1</version>
  157. </dependency>
  158. <!--支付相关-->
  159. <dependency>
  160. <groupId>net.sf.json-lib</groupId>
  161. <artifactId>json-lib</artifactId>
  162. <version>2.4</version>
  163. <type>jar</type>
  164. <classifier>jdk15</classifier>
  165. </dependency>
  166. <!--jwt start-->
  167. <dependency>
  168. <groupId>io.jsonwebtoken</groupId>
  169. <artifactId>jjwt-api</artifactId>
  170. <version>0.10.5</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>io.jsonwebtoken</groupId>
  174. <artifactId>jjwt-impl</artifactId>
  175. <version>0.10.5</version>
  176. <scope>runtime</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>io.jsonwebtoken</groupId>
  180. <artifactId>jjwt-jackson</artifactId>
  181. <version>0.10.5</version>
  182. <scope>runtime</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.projectlombok</groupId>
  186. <artifactId>lombok</artifactId>
  187. <version>1.18.12</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.commons</groupId>
  191. <artifactId>commons-lang3</artifactId>
  192. <version>3.10</version>
  193. </dependency>
  194. <dependency>
  195. <groupId>redis.clients</groupId>
  196. <artifactId>jedis</artifactId>
  197. <version>2.8.1</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.alibaba</groupId>
  201. <artifactId>fastjson</artifactId>
  202. <version>1.2.79</version>
  203. </dependency>
  204. <!-- aliyun oss start -->
  205. <dependency>
  206. <groupId>com.aliyun.oss</groupId>
  207. <artifactId>aliyun-sdk-oss</artifactId>
  208. <version>3.13.2</version>
  209. </dependency>
  210. <!-- aliyun oss end -->
  211. <dependency>
  212. <groupId>com.taobao</groupId>
  213. <artifactId>taobao-sdk-java</artifactId>
  214. <version>1.0.0</version>
  215. <scope>compile</scope>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.apache.httpcomponents</groupId>
  219. <artifactId>httpmime</artifactId>
  220. <version>4.5.10</version>
  221. </dependency>
  222. <!-- 导入和导出-->
  223. <dependency>
  224. <groupId>cn.afterturn</groupId>
  225. <artifactId>easypoi-base</artifactId>
  226. <version>4.4.0</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>cn.afterturn</groupId>
  230. <artifactId>easypoi-web</artifactId>
  231. <version>4.4.0</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>cn.afterturn</groupId>
  235. <artifactId>easypoi-annotation</artifactId>
  236. <version>4.4.0</version>
  237. </dependency>
  238. </dependencies>
  239. <build>
  240. <finalName>demo1</finalName>
  241. <plugins>
  242. <!-- maven 打包时跳过测试 -->
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-surefire-plugin</artifactId>
  246. <configuration>
  247. <skip>true</skip>
  248. </configuration>
  249. </plugin>
  250. <plugin>
  251. <groupId>org.springframework.boot</groupId>
  252. <artifactId>spring-boot-maven-plugin</artifactId>
  253. <executions>
  254. <execution>
  255. <goals>
  256. <goal>repackage</goal>
  257. </goals>
  258. </execution>
  259. </executions>
  260. <configuration>
  261. <layout>ZIP</layout>
  262. <includes>
  263. <!-- 设置没有jar包-->
  264. <include>
  265. <groupId>nothing</groupId>
  266. <artifactId>nothing</artifactId>
  267. </include>
  268. </includes>
  269. <mainClass>com.example.demo1.Demo1Application</mainClass>
  270. </configuration>
  271. </plugin>
  272. <plugin>
  273. <groupId>org.apache.maven.plugins</groupId>
  274. <artifactId>maven-compiler-plugin</artifactId>
  275. <version>3.8.1</version>
  276. <configuration>
  277. <source>1.8</source>
  278. <target>1.8</target>
  279. <annotationProcessorPaths>
  280. <path>
  281. <groupId>org.mapstruct</groupId>
  282. <artifactId>mapstruct-processor</artifactId>
  283. <version>${org.mapstruct.version}</version>
  284. </path>
  285. <path>
  286. <groupId>org.projectlombok</groupId>
  287. <artifactId>lombok</artifactId>
  288. <version>${lombok.version}</version>
  289. </path>
  290. <!-- This is needed when using Lombok 1.18.16 and above -->
  291. <path>
  292. <groupId>org.projectlombok</groupId>
  293. <artifactId>lombok-mapstruct-binding</artifactId>
  294. <version>0.2.0</version>
  295. </path>
  296. </annotationProcessorPaths>
  297. </configuration>
  298. </plugin>
  299. </plugins>
  300. </build>
  301. <profiles>
  302. <profile>
  303. <id>dev</id>
  304. <dependencies>
  305. <dependency>
  306. <groupId>org.springframework.boot</groupId>
  307. <artifactId>spring-boot-starter-tomcat</artifactId>
  308. </dependency>
  309. </dependencies>
  310. <properties>
  311. <active.profile>dev</active.profile>
  312. </properties>
  313. <activation>
  314. <activeByDefault>true</activeByDefault>
  315. </activation>
  316. </profile>
  317. <profile>
  318. <id>test</id>
  319. <dependencies>
  320. <dependency>
  321. <groupId>org.springframework.boot</groupId>
  322. <artifactId>spring-boot-starter-tomcat</artifactId>
  323. </dependency>
  324. </dependencies>
  325. <properties>
  326. <active.profile>test</active.profile>
  327. </properties>
  328. </profile>
  329. <profile>
  330. <id>production</id>
  331. <properties>
  332. <active.profile>production</active.profile>
  333. </properties>
  334. <dependencies>
  335. <dependency>
  336. <groupId>org.springframework.boot</groupId>
  337. <artifactId>spring-boot-starter-tomcat</artifactId>
  338. </dependency>
  339. </dependencies>
  340. </profile>
  341. </profiles>
  342. </project>