pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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>wkcrm</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>wk_gateway</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>wk_gateway</name>
  14. <description>gateway网关</description>
  15. <repositories>
  16. <repository>
  17. <id>public</id>
  18. <name>local private nexus</name>
  19. <url>http://nexus.72crm.com/repository/maven-public/</url>
  20. <releases>
  21. <enabled>true</enabled>
  22. </releases>
  23. </repository>
  24. </repositories>
  25. <pluginRepositories>
  26. <pluginRepository>
  27. <id>public</id>
  28. <name>local private nexus</name>
  29. <url>http://nexus.72crm.com/repository/maven-public/</url>
  30. <releases>
  31. <enabled>true</enabled>
  32. </releases>
  33. <snapshots>
  34. <enabled>false</enabled>
  35. </snapshots>
  36. </pluginRepository>
  37. </pluginRepositories>
  38. <dependencies>
  39. <dependency>
  40. <groupId>com.kakarote</groupId>
  41. <artifactId>core</artifactId>
  42. <version>${core.version}</version>
  43. <exclusions>
  44. <exclusion>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-web</artifactId>
  47. </exclusion>
  48. <exclusion>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-undertow</artifactId>
  51. </exclusion>
  52. <exclusion>
  53. <groupId>com.alibaba.cloud</groupId>
  54. <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
  55. </exclusion>
  56. <exclusion>
  57. <groupId>io.seata</groupId>
  58. <artifactId>seata-spring-boot-starter</artifactId>
  59. </exclusion>
  60. <exclusion>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
  63. </exclusion>
  64. <exclusion>
  65. <groupId>com.alibaba</groupId>
  66. <artifactId>druid</artifactId>
  67. </exclusion>
  68. </exclusions>
  69. </dependency>
  70. <!--api网关-->
  71. <dependency>
  72. <groupId>org.springframework.cloud</groupId>
  73. <artifactId>spring-cloud-starter-gateway</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.alibaba.cloud</groupId>
  77. <artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>javax.servlet</groupId>
  81. <artifactId>javax.servlet-api</artifactId>
  82. <version>3.1.0</version>
  83. </dependency>
  84. <!--在线更新-->
  85. <!--<dependency>
  86. <groupId>com.kakarote</groupId>
  87. <artifactId>wk_update</artifactId>
  88. <version>2.1-SNAPSHOT</version>
  89. <classifier>jar-with-dependencies</classifier>
  90. </dependency>-->
  91. </dependencies>
  92. <build>
  93. <resources>
  94. <!--解决idea不识别resources的问题-->
  95. <resource>
  96. <directory>src/main/resources</directory>
  97. <filtering>true</filtering>
  98. </resource>
  99. <resource>
  100. <directory>src/main/webapp</directory>
  101. <filtering>false</filtering>
  102. <excludes>
  103. <exclude>/*</exclude>
  104. </excludes>
  105. </resource>
  106. </resources>
  107. <plugins>
  108. <!--打包jar-->
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-jar-plugin</artifactId>
  112. <configuration>
  113. <archive>
  114. <manifest>
  115. <addClasspath>true</addClasspath>
  116. <!--MANIFEST.MF 中 Class-Path 加入前缀-->
  117. <classpathPrefix>lib/</classpathPrefix>
  118. <!--jar包不包含唯一版本标识-->
  119. <useUniqueVersions>false</useUniqueVersions>
  120. <!--指定入口类-->
  121. <mainClass>com.kakarote.gateway.GatewayApplication</mainClass>
  122. </manifest>
  123. <manifestEntries>
  124. <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
  125. <Class-Path>./config/</Class-Path>
  126. </manifestEntries>
  127. </archive>
  128. <includes>
  129. <include>com/kakarote/**</include>
  130. <include>*.yml</include>
  131. </includes>
  132. <outputDirectory>${project.build.directory}</outputDirectory>
  133. </configuration>
  134. </plugin>
  135. <!--拷贝依赖 copy-dependencies-->
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-dependency-plugin</artifactId>
  139. <executions>
  140. <execution>
  141. <id>copy-dependencies</id>
  142. <phase>package</phase>
  143. <goals>
  144. <goal>copy-dependencies</goal>
  145. </goals>
  146. <configuration>
  147. <outputDirectory>
  148. ${project.build.directory}/lib/
  149. </outputDirectory>
  150. </configuration>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <!--拷贝资源文件 copy-resources-->
  155. <plugin>
  156. <artifactId>maven-resources-plugin</artifactId>
  157. <executions>
  158. <execution>
  159. <id>copy-resources</id>
  160. <phase>package</phase>
  161. <goals>
  162. <goal>copy-resources</goal>
  163. </goals>
  164. <configuration>
  165. <resources>
  166. <resource>
  167. <directory>src/main/resources/</directory>
  168. </resource>
  169. </resources>
  170. <outputDirectory>${project.build.directory}/config</outputDirectory>
  171. </configuration>
  172. </execution>
  173. <execution>
  174. <id>copy-public</id>
  175. <phase>package</phase>
  176. <goals>
  177. <goal>copy-resources</goal>
  178. </goals>
  179. <configuration>
  180. <resources>
  181. <resource>
  182. <directory>src/main/webapp/public</directory>
  183. </resource>
  184. </resources>
  185. <outputDirectory>${project.build.directory}/public</outputDirectory>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <artifactId>maven-assembly-plugin</artifactId>
  192. <configuration>
  193. <appendAssemblyId>false</appendAssemblyId>
  194. <descriptors>
  195. <descriptor>../assembly.xml</descriptor>
  196. </descriptors>
  197. </configuration>
  198. <executions>
  199. <execution>
  200. <id>make-assembly</id>
  201. <phase>package</phase>
  202. <goals>
  203. <goal>single</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. </plugins>
  209. </build>
  210. </project>