pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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.1.12.RELEASE</version>-->
  9. <version>2.1.11.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.users</groupId>
  13. <artifactId>users_pay</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>users_pay</name>
  16. <description>users_pay</description>
  17. <properties>
  18. <java.version>8</java.version>
  19. <pagehelper.version>1.4.1</pagehelper.version>
  20. <druid.version>1.2.8</druid.version>
  21. <mybatis.version>2.2.0</mybatis.version>
  22. <swagger.version>2.9.2</swagger.version>
  23. <jwt.version>3.18.2</jwt.version>
  24. <feign.version>2.1.4.RELEASE</feign.version>
  25. </properties>
  26. <dependencies>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-aop</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.projectlombok</groupId>
  37. <artifactId>lombok</artifactId>
  38. <optional>true</optional>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-test</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <!--集成打印日志-->
  46. <dependency>
  47. <groupId>org.slf4j</groupId>
  48. <artifactId>slf4j-api</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.slf4j</groupId>
  52. <artifactId>slf4j-log4j12</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.commons</groupId>
  56. <artifactId>commons-lang3</artifactId>
  57. <version>3.1</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.github.pagehelper</groupId>
  61. <artifactId>pagehelper-spring-boot-starter</artifactId>
  62. <version>${pagehelper.version}</version>
  63. <exclusions>
  64. <exclusion>
  65. <artifactId>mybatis-spring-boot-starter</artifactId>
  66. <groupId>org.mybatis.spring.boot</groupId>
  67. </exclusion>
  68. </exclusions>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.mybatis.spring.boot</groupId>
  72. <artifactId>mybatis-spring-boot-starter</artifactId>
  73. <version>${mybatis.version}</version>
  74. </dependency>
  75. <!-- 集成druid连接池-->
  76. <dependency>
  77. <groupId>com.alibaba</groupId>
  78. <artifactId>druid-spring-boot-starter</artifactId>
  79. <version>${druid.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>mysql</groupId>
  83. <artifactId>mysql-connector-java</artifactId>
  84. <scope>runtime</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>io.springfox</groupId>
  88. <artifactId>springfox-swagger-ui</artifactId>
  89. <version>${swagger.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>io.springfox</groupId>
  93. <artifactId>springfox-swagger2</artifactId>
  94. <version>${swagger.version}</version>
  95. </dependency>
  96. <!-- <dependency>
  97. <groupId>com.auth0</groupId>
  98. <artifactId>java-jwt</artifactId>
  99. <version>${jwt.version}</version>
  100. </dependency>-->
  101. <!--集成redis-->
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-data-redis</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.alibaba</groupId>
  108. <artifactId>fastjson</artifactId>
  109. <version>1.2.76</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.github.wxpay</groupId>
  113. <artifactId>wxpay-sdk</artifactId>
  114. <version>0.0.3</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.github.wechatpay-apiv3</groupId>
  118. <artifactId>wechatpay-java</artifactId>
  119. <version>0.2.12</version>
  120. <exclusions>
  121. <exclusion>
  122. <!-- 过滤okhttp包-->
  123. <groupId>com.squareup.okhttp3</groupId>
  124. <artifactId>okhttp</artifactId>
  125. </exclusion>
  126. </exclusions>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.squareup.okhttp3</groupId>
  130. <artifactId>okhttp</artifactId>
  131. <version>3.4.2</version>
  132. </dependency>
  133. <!--<dependency>
  134. <groupId>org.apache.httpcomponents</groupId>
  135. <artifactId>httpcore</artifactId>
  136. <version>4.4.10</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.httpcomponents</groupId>
  140. <artifactId>httpclient</artifactId>
  141. <version>4.5.6</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.apache.httpcomponents</groupId>
  145. <artifactId>httpmime</artifactId>
  146. <version>4.5</version>
  147. </dependency>-->
  148. <dependency>
  149. <groupId>io.jsonwebtoken</groupId>
  150. <artifactId>jjwt</artifactId>
  151. <version>0.9.1</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>javax.xml.bind</groupId>
  155. <artifactId>jaxb-api</artifactId>
  156. <version>2.3.1</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.glassfish.jaxb</groupId>
  160. <artifactId>jaxb-runtime</artifactId>
  161. <version>2.3.1</version>
  162. </dependency>
  163. <!-- 阿里云短信服务依赖 -->
  164. <dependency>
  165. <groupId>com.aliyun</groupId>
  166. <artifactId>aliyun-java-sdk-core</artifactId>
  167. <version>4.5.20</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.aliyun</groupId>
  171. <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
  172. <version>2.1.0</version>
  173. </dependency>
  174. <!-- 阿里云 OSS 对象存储依赖 -->
  175. <dependency>
  176. <groupId>com.aliyun.oss</groupId>
  177. <artifactId>aliyun-sdk-oss</artifactId>
  178. <version>3.16.2</version>
  179. </dependency>
  180. </dependencies>
  181. <build>
  182. <finalName>${project.artifactId}</finalName>
  183. <resources>
  184. <resource>
  185. <directory>src/main/resources</directory>
  186. <includes>
  187. <include>**/*.yml</include>
  188. <include>**/*.yaml</include>
  189. <include>**/*.properties</include>
  190. <include>**/*.xml</include>
  191. </includes>
  192. <filtering>false</filtering>
  193. </resource>
  194. </resources>
  195. <plugins>
  196. <plugin>
  197. <groupId>org.springframework.boot</groupId>
  198. <artifactId>spring-boot-maven-plugin</artifactId>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.apache.maven.plugins</groupId>
  202. <artifactId>maven-jar-plugin</artifactId>
  203. <configuration>
  204. <archive>
  205. <addMavenDescriptor>false</addMavenDescriptor>
  206. <manifest>
  207. <addClasspath>true</addClasspath>
  208. <classpathPrefix>lib/</classpathPrefix>
  209. <mainClass>com.dtb.portal.PortalApplication</mainClass>
  210. </manifest>
  211. <manifestEntries>
  212. <Class-Path>config/</Class-Path>
  213. </manifestEntries>
  214. </archive>
  215. </configuration>
  216. </plugin>
  217. <plugin>
  218. <artifactId>maven-resources-plugin</artifactId>
  219. <executions>
  220. <execution>
  221. <id>copy-resources</id>
  222. <phase>package</phase>
  223. <goals>
  224. <goal>copy-resources</goal>
  225. </goals>
  226. <configuration>
  227. <outputDirectory>${project.build.directory}/maven-archiver/resources</outputDirectory>
  228. <resources>
  229. <resource>
  230. <directory>${basedir}/src/main/resources</directory>
  231. <include>*.properties</include>
  232. <filtering>true</filtering>
  233. </resource>
  234. </resources>
  235. </configuration>
  236. </execution>
  237. </executions>
  238. </plugin>
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-assembly-plugin</artifactId>
  242. <configuration>
  243. <descriptors>
  244. <descriptor>${project.basedir}/package.xml</descriptor>
  245. </descriptors>
  246. </configuration>
  247. <executions>
  248. <execution>
  249. <id>make-assembly</id>
  250. <phase>package</phase>
  251. <goals>
  252. <goal>single</goal>
  253. </goals>
  254. </execution>
  255. </executions>
  256. </plugin>
  257. <plugin>
  258. <groupId>org.apache.maven.plugins</groupId>
  259. <artifactId>maven-antrun-plugin</artifactId>
  260. <version>1.8</version>
  261. <executions>
  262. <execution>
  263. <id>deploy</id>
  264. <phase>package</phase>
  265. <goals>
  266. <goal>run</goal>
  267. </goals>
  268. <configuration>
  269. <target>
  270. <untar src="${project.build.directory}/${project.artifactId}-bin.tar.gz"
  271. dest="${project.build.directory}" overwrite="true" compression="gzip"/>
  272. </target>
  273. </configuration>
  274. </execution>
  275. </executions>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-compiler-plugin</artifactId>
  280. <configuration>
  281. <source>8</source>
  282. <target>8</target>
  283. </configuration>
  284. </plugin>
  285. </plugins>
  286. </build>
  287. </project>