pom.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. <packaging>jar</packaging>
  6. <parent>
  7. <groupId>com.kakarote</groupId>
  8. <artifactId>wukongcrm</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>admin</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>admin</name>
  14. <description>系统管理</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.kakarote</groupId>
  18. <artifactId>core</artifactId>
  19. <version>${core.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>io.seata</groupId>
  23. <artifactId>seata-spring-boot-starter</artifactId>
  24. </dependency>
  25. <!--拼音工具-->
  26. <dependency>
  27. <groupId>io.github.biezhi</groupId>
  28. <artifactId>TinyPinyin</artifactId>
  29. <version>2.0.3.RELEASE</version>
  30. </dependency>
  31. <!--微信支付 wwl-->
  32. <dependency>
  33. <groupId>com.github.binarywang</groupId>
  34. <artifactId>weixin-java-pay</artifactId>
  35. <version>4.2.0</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.github.wechatpay-apiv3</groupId>
  39. <artifactId>wechatpay-apache-httpclient</artifactId>
  40. <version>0.4.1</version>
  41. </dependency>
  42. <!-- 支付宝支付 wwl ↓ -->
  43. <dependency>
  44. <groupId>com.alipay.sdk</groupId>
  45. <artifactId>alipay-easysdk</artifactId>
  46. <version>2.2.0</version>
  47. </dependency>
  48. <!-- 支付宝支付 wwl ↑ -->
  49. <dependency>
  50. <groupId>com.sun.mail</groupId>
  51. <artifactId>javax.mail</artifactId>
  52. <version>1.6.2</version>
  53. </dependency>
  54. <!-- -->
  55. <dependency>
  56. <groupId>org.apache.rocketmq</groupId>
  57. <artifactId>rocketmq-spring-boot-starter</artifactId>
  58. <version>2.0.3</version>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <resources>
  63. <resource>
  64. <!-- xml放在java目录下-->
  65. <directory>src/main/java/com/kakarote/${pom.artifactId}/</directory>
  66. <includes>
  67. <include>**/*.xml</include>
  68. </includes>
  69. </resource>
  70. <!--解决idea不识别resources的问题-->
  71. <resource>
  72. <directory>src/main/resources</directory>
  73. <filtering>true</filtering>
  74. </resource>
  75. </resources>
  76. <plugins>
  77. <!--打包jar-->
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-jar-plugin</artifactId>
  81. <configuration>
  82. <archive>
  83. <manifest>
  84. <addClasspath>true</addClasspath>
  85. <!--MANIFEST.MF 中 Class-Path 加入前缀-->
  86. <classpathPrefix>lib/</classpathPrefix>
  87. <!--jar包不包含唯一版本标识-->
  88. <useUniqueVersions>false</useUniqueVersions>
  89. <!--指定入口类-->
  90. <mainClass>com.kakarote.admin.AdminApplication</mainClass>
  91. </manifest>
  92. <manifestEntries>
  93. <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
  94. <Class-Path>./config/</Class-Path>
  95. </manifestEntries>
  96. </archive>
  97. <outputDirectory>${project.build.directory}</outputDirectory>
  98. </configuration>
  99. </plugin>
  100. <!--拷贝依赖 copy-dependencies-->
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-dependency-plugin</artifactId>
  104. <executions>
  105. <execution>
  106. <id>copy-dependencies</id>
  107. <phase>package</phase>
  108. <goals>
  109. <goal>copy-dependencies</goal>
  110. </goals>
  111. <configuration>
  112. <outputDirectory>
  113. ${project.build.directory}/lib/
  114. </outputDirectory>
  115. </configuration>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. <!--拷贝资源文件 copy-resources-->
  120. <plugin>
  121. <artifactId>maven-resources-plugin</artifactId>
  122. <executions>
  123. <execution>
  124. <id>copy-resources</id>
  125. <phase>package</phase>
  126. <goals>
  127. <goal>copy-resources</goal>
  128. </goals>
  129. <configuration>
  130. <resources>
  131. <resource>
  132. <directory>src/main/resources/</directory>
  133. </resource>
  134. </resources>
  135. <outputDirectory>${project.build.directory}/config</outputDirectory>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. <!--wwl 20220113 -->
  140. <configuration>
  141. <encoding>UTF-8</encoding>
  142. <!-- 过滤后缀为p12的证书文件 -->
  143. <nonFilteredFileExtensions>
  144. <nonFilteredFileExtension>p12</nonFilteredFileExtension>
  145. </nonFilteredFileExtensions>
  146. </configuration>
  147. </plugin>
  148. <plugin>
  149. <artifactId>maven-assembly-plugin</artifactId>
  150. <configuration>
  151. <finalName>${artifactId}</finalName>
  152. <appendAssemblyId>false</appendAssemblyId>
  153. <descriptors>
  154. <descriptor>../assembly.xml</descriptor>
  155. </descriptors>
  156. </configuration>
  157. <executions>
  158. <execution>
  159. <id>make-assembly</id>
  160. <phase>package</phase>
  161. <goals>
  162. <goal>single</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>