pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <name>430-platform</name>
  6. <description>base project 4 spring-boot</description>
  7. <groupId>com.app</groupId>
  8. <artifactId>430-platform</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. <packaging>jar</packaging>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.1.5.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <properties>
  18. <java-jwt.version>3.8.1</java-jwt.version>
  19. <springfox-swagger.version>2.9.2</springfox-swagger.version>
  20. <joda-time.version>2.10.3</joda-time.version>
  21. <bcprov-jdk16.version>1.46</bcprov-jdk16.version>
  22. <poi.version>4.1.0</poi.version>
  23. <poi-ooxml.version>4.1.0</poi-ooxml.version>
  24. <java.version>1.8</java.version>
  25. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  27. <project.build.locales>zh_CN</project.build.locales>
  28. <maven.compiler.source>1.8</maven.compiler.source>
  29. <maven.compiler.target>1.8</maven.compiler.target>
  30. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  31. <skipTests>true</skipTests> <!-- 项目打包的时候跳过单元测试 -->
  32. <docker.image.prefix>/</docker.image.prefix>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-starter-openfeign</artifactId>
  38. <version>2.1.5.RELEASE</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-aop</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-data-redis</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>mysql</groupId>
  54. <artifactId>mysql-connector-java</artifactId>
  55. <scope>runtime</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-devtools</artifactId>
  60. <scope>runtime</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.springfox</groupId>
  69. <artifactId>springfox-swagger2</artifactId>
  70. <version>${springfox-swagger.version}</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>io.springfox</groupId>
  74. <artifactId>springfox-swagger-ui</artifactId>
  75. <version>${springfox-swagger.version}</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.alibaba</groupId>
  79. <artifactId>fastjson</artifactId>
  80. <version>1.2.66</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.auth0</groupId>
  84. <artifactId>java-jwt</artifactId>
  85. <version>${java-jwt.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.bouncycastle</groupId>
  89. <artifactId>bcprov-jdk16</artifactId>
  90. <version>${bcprov-jdk16.version}</version>
  91. </dependency>
  92. <!-- 微信支付SDK -->
  93. <!-- SDK与DEMO下载-->
  94. <!-- https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1 -->
  95. <!-- 以下为最沙雕的引入方式。因为微信好像没有推送到公网Maven服务。就算有也拉不了... -->
  96. <!-- [稍旧]https://mvnrepository.com/artifact/com.github.wxpay/wxpay-sdk/0.0.3 -->
  97. <!-- [最新]https://mvnrepository.com/artifact/com.github.wxpay/WXPay-SDK-Java/0.0.4 -->
  98. <!-- [最新]手动下载该jar包放在项目目录libs底下,也把plugin到includeSystemScope打开 -->
  99. <dependency>
  100. <groupId>com.github.wxpay</groupId>
  101. <artifactId>WXPay-SDK-Java</artifactId>
  102. <version>0.0.4</version>
  103. <scope>system</scope>
  104. <systemPath>${project.basedir}/libs/WXPay-SDK-Java-0.0.4.jar</systemPath>
  105. </dependency>
  106. <!-- 微信支付SDK -->
  107. <dependency>
  108. <groupId>com.baomidou</groupId>
  109. <artifactId>mybatis-plus-boot-starter</artifactId>
  110. <version>3.3.2</version>
  111. </dependency>
  112. <!-- <dependency>-->
  113. <!-- <groupId>com.baomidou</groupId>-->
  114. <!-- <artifactId>mybatis-plus-generator</artifactId>-->
  115. <!-- <version>3.3.2</version>-->
  116. <!-- <scope>provided</scope>&lt;!&ndash; 打包不需要该依赖,在Mybatis反向生成代码中使用到... &ndash;&gt;-->
  117. <!-- </dependency>-->
  118. <!-- todo spring-cloud-starter-druid-monitor druid-admin -->
  119. <dependency>
  120. <groupId>com.alibaba</groupId>
  121. <artifactId>druid-spring-boot-starter</artifactId>
  122. <version>1.2.4</version>
  123. </dependency>
  124. <!-- ========== ========== 工具类依赖 ========== ========== -->
  125. <dependency>
  126. <groupId>org.projectlombok</groupId>
  127. <artifactId>lombok</artifactId>
  128. <optional>true</optional>
  129. </dependency>
  130. <dependency>
  131. <groupId>cn.hutool</groupId>
  132. <artifactId>hutool-all</artifactId>
  133. <version>5.4.4</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>joda-time</groupId>
  137. <artifactId>joda-time</artifactId>
  138. <version>${joda-time.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.poi</groupId>
  142. <artifactId>poi</artifactId>
  143. <version>${poi.version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.poi</groupId>
  147. <artifactId>poi-ooxml</artifactId>
  148. <version>${poi-ooxml.version}</version>
  149. </dependency>
  150. <!-- 分析客户端信息的工具类-->
  151. <dependency>
  152. <groupId>eu.bitwalker</groupId>
  153. <artifactId>UserAgentUtils</artifactId>
  154. <version>1.20</version>
  155. </dependency>
  156. <!-- allow-bean-definition-overriding: true 不生效依赖-->
  157. <!-- <dependency>-->
  158. <!-- <groupId>org.springframework.cloud</groupId>-->
  159. <!-- <artifactId>spring-cloud-starter-bootstrap</artifactId>-->
  160. <!-- <version>3.1.3</version>-->
  161. <!-- </dependency>-->
  162. <!-- https://gitee.com/lionsoul/ip2region/ -->
  163. <dependency>
  164. <groupId>org.lionsoul</groupId>
  165. <artifactId>ip2region</artifactId>
  166. <version>1.7.2</version>
  167. </dependency>
  168. <!-- ========== ========== 工具类依赖 ========== ========== -->
  169. </dependencies>
  170. <repositories>
  171. <repository>
  172. <id>spring-milestones</id>
  173. <name>Spring Milestones</name>
  174. <url>https://repo.spring.io/libs-milestone</url>
  175. <releases>
  176. <enabled>true</enabled>
  177. <updatePolicy>daily</updatePolicy>
  178. </releases>
  179. <snapshots>
  180. <enabled>false</enabled>
  181. <checksumPolicy>warn</checksumPolicy>
  182. </snapshots>
  183. <layout>default</layout>
  184. </repository>
  185. </repositories>
  186. <build>
  187. <resources>
  188. <resource>
  189. <filtering>true</filtering>
  190. <directory>src/main/resources</directory>
  191. <includes>
  192. <!-- 包含文件夹以及子文件夹下所有资源 -->
  193. <include>**/*.*</include>
  194. </includes>
  195. <excludes>
  196. <!-- 排除资源文件(注意会跟开发环境有关) -->
  197. </excludes>
  198. </resource>
  199. </resources>
  200. <plugins>
  201. <plugin>
  202. <!-- 指定编译版本 -->
  203. <groupId>org.apache.maven.plugins</groupId>
  204. <artifactId>maven-compiler-plugin</artifactId>
  205. <configuration>
  206. <source>1.8</source>
  207. <target>1.8</target>
  208. <encoding>UTF-8</encoding>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <!-- maven打包时,跳过测试 -->
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-surefire-plugin</artifactId>
  215. <configuration>
  216. <skip>true</skip>
  217. </configuration>
  218. </plugin>
  219. <plugin>
  220. <groupId>org.springframework.boot</groupId>
  221. <artifactId>spring-boot-maven-plugin</artifactId>
  222. <configuration>
  223. <fork>true</fork> <!--热部署插件-->
  224. <includeSystemScope>true</includeSystemScope> <!-- 引入本地jar需要配置该变量使Maven也把本地jar进行打包 -->
  225. <mainClass>com.app.Application</mainClass>
  226. <layout>ZIP</layout>
  227. <!-- <includes>-->
  228. <!-- &lt;!&ndash; 或者 依赖jar不打进项目jar包中 &ndash;&gt;-->
  229. <!-- <include>-->
  230. <!-- <groupId>nothing</groupId>-->
  231. <!-- <artifactId>nothing</artifactId>-->
  232. <!-- </include>-->
  233. <!-- </includes>-->
  234. </configuration>
  235. <executions>
  236. <execution>
  237. <goals>
  238. <goal>
  239. repackage
  240. </goal>
  241. </goals>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. <!-- <plugin>-->
  246. <!-- &lt;!&ndash; 拷贝依赖 copy-dependencies &ndash;&gt;-->
  247. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  248. <!-- <artifactId>maven-dependency-plugin</artifactId>-->
  249. <!-- <executions>-->
  250. <!-- <execution>-->
  251. <!-- <id>copy-dependencies</id>-->
  252. <!-- <phase>package</phase>-->
  253. <!-- <goals>-->
  254. <!-- <goal>copy-dependencies</goal>-->
  255. <!-- </goals>-->
  256. <!-- <configuration>-->
  257. <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
  258. <!-- </configuration>-->
  259. <!-- </execution>-->
  260. <!-- </executions>-->
  261. <!-- </plugin>-->
  262. <!-- <plugin>-->
  263. <!-- &lt;!&ndash; 拷贝资源文件 copy-resources &ndash;&gt;-->
  264. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  265. <!-- <artifactId>maven-resources-plugin</artifactId>-->
  266. <!-- <executions>-->
  267. <!-- <execution>-->
  268. <!-- <id>copy-resources</id>-->
  269. <!-- <phase>package</phase>-->
  270. <!-- <goals>-->
  271. <!-- <goal>copy-resources</goal>-->
  272. <!-- </goals>-->
  273. <!-- <configuration>-->
  274. <!-- <resources>-->
  275. <!-- <resource>-->
  276. <!-- <directory>src/main/resources</directory>-->
  277. <!-- </resource>-->
  278. <!-- </resources>-->
  279. <!-- <outputDirectory>${project.build.directory}/conf</outputDirectory>-->
  280. <!-- </configuration>-->
  281. <!-- </execution>-->
  282. <!-- &lt;!&ndash;copy 脚本,把bin目录下的文件复制到,打包目录下&ndash;&gt;-->
  283. <!-- <execution>-->
  284. <!-- <id>copy-bin</id>-->
  285. <!-- <phase>package</phase>-->
  286. <!-- <goals>-->
  287. <!-- <goal>copy-resources</goal>-->
  288. <!-- </goals>-->
  289. <!-- <configuration>-->
  290. <!-- <resources>-->
  291. <!-- <resource>-->
  292. <!-- <directory>bin/</directory>-->
  293. <!-- </resource>-->
  294. <!-- </resources>-->
  295. <!-- <outputDirectory>${project.build.directory}/bin</outputDirectory>-->
  296. <!-- </configuration>-->
  297. <!-- </execution>-->
  298. <!-- </executions>-->
  299. <!-- <configuration>-->
  300. <!-- <encoding>UTF-8</encoding>-->
  301. <!-- <useDefaultDelimiters>false</useDefaultDelimiters>-->
  302. <!-- <delimiters>-->
  303. <!-- <delimiter>$[*]</delimiter>-->
  304. <!-- </delimiters>-->
  305. <!-- &lt;!&ndash; 过滤后缀不需要转码的文件后缀名.crt/.p8 &ndash;&gt;-->
  306. <!-- <nonFilteredFileExtensions>-->
  307. <!-- <nonFilteredFileExtension>crt</nonFilteredFileExtension>-->
  308. <!-- <nonFilteredFileExtension>p8</nonFilteredFileExtension>-->
  309. <!-- <nonFilteredFileExtension>xls</nonFilteredFileExtension>-->
  310. <!-- <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>-->
  311. <!-- <nonFilteredFileExtension>doc</nonFilteredFileExtension>-->
  312. <!-- <nonFilteredFileExtension>docx</nonFilteredFileExtension>-->
  313. <!-- <nonFilteredFileExtension>zip</nonFilteredFileExtension>-->
  314. <!-- <nonFilteredFileExtension>py</nonFilteredFileExtension>-->
  315. <!-- <nonFilteredFileExtension>db</nonFilteredFileExtension>-->
  316. <!-- </nonFilteredFileExtensions>-->
  317. <!-- </configuration>-->
  318. <!-- </plugin>-->
  319. <plugin>
  320. <groupId>org.apache.maven.plugins</groupId>
  321. <artifactId>maven-jar-plugin</artifactId>
  322. <configuration>
  323. <archive>
  324. <manifestEntries>
  325. <SCM-Revision>${scmRevision}</SCM-Revision>
  326. <Built-Time>${buildTime}</Built-Time>
  327. </manifestEntries>
  328. </archive>
  329. <excludes>
  330. <exclude>*.conf</exclude>
  331. <exclude>*.yml</exclude>
  332. <exclude>*.xml</exclude>
  333. <exclude>*.properties</exclude>
  334. </excludes>
  335. </configuration>
  336. </plugin>
  337. <!-- <plugin>-->
  338. <!-- <groupId>pl.project13.maven</groupId>-->
  339. <!-- <artifactId>git-commit-id-plugin</artifactId>-->
  340. <!-- <version>2.1.15</version>-->
  341. <!-- <executions>-->
  342. <!-- <execution>-->
  343. <!-- <goals>-->
  344. <!-- <goal>revision</goal>-->
  345. <!-- </goals>-->
  346. <!-- </execution>-->
  347. <!-- </executions>-->
  348. <!-- <configuration>-->
  349. <!-- <dateFormat>yyyy.MM.dd HH:mm:ss</dateFormat>-->
  350. <!-- &lt;!&ndash; 是否生 git.properties 属性文件 &ndash;&gt;-->
  351. <!-- <generateGitPropertiesFile>true</generateGitPropertiesFile>-->
  352. <!-- <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>-->
  353. <!-- </configuration>-->
  354. <!-- </plugin>-->
  355. <!-- Docker maven plugin -->
  356. <plugin>
  357. <groupId>com.spotify</groupId>
  358. <artifactId>docker-maven-plugin</artifactId>
  359. <version>1.0.0</version>
  360. <configuration>
  361. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  362. <dockerDirectory>src/main/docker</dockerDirectory>
  363. <resources>
  364. <resource>
  365. <targetPath>/</targetPath>
  366. <directory>${project.build.directory}</directory>
  367. <include>${project.build.finalName}.jar</include>
  368. </resource>
  369. </resources>
  370. </configuration>
  371. </plugin>
  372. <!-- Docker maven plugin -->
  373. </plugins>
  374. </build>
  375. </project>