pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.jzg</groupId>
  6. <artifactId>jzg</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>gateway</artifactId>
  10. <packaging>jar</packaging>
  11. <name>gateway Maven Webapp</name>
  12. <url>http://maven.apache.org</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.cloud</groupId>
  16. <artifactId>spring-cloud-starter-gateway</artifactId>
  17. <version>3.1.2</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.springframework.cloud</groupId>
  21. <artifactId>spring-cloud-gateway-server</artifactId>
  22. <version>4.0.7</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.jzg</groupId>
  26. <artifactId>commons</artifactId>
  27. <version>1.0-SNAPSHOT</version>
  28. <exclusions>
  29. <exclusion>
  30. <groupId>io.minio</groupId>
  31. <artifactId>minio</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <dependency>
  36. <groupId>cn.hutool</groupId>
  37. <artifactId>hutool-crypto</artifactId>
  38. </dependency>
  39. </dependencies>
  40. <build>
  41. <plugins>
  42. <plugin>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-maven-plugin</artifactId>
  45. <executions>
  46. <execution>
  47. <id>repackage</id>
  48. <phase>none</phase>
  49. </execution>
  50. </executions>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-dependency-plugin</artifactId>
  55. <executions>
  56. <execution>
  57. <id>copy-dependencies</id>
  58. <phase>package</phase>
  59. <goals>
  60. <goal>copy-dependencies</goal>
  61. </goals>
  62. <configuration>
  63. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  64. <overWriteReleases>false</overWriteReleases>
  65. <overWriteSnapshots>false</overWriteSnapshots>
  66. <overWriteIfNewer>true</overWriteIfNewer>
  67. </configuration>
  68. </execution>
  69. </executions>
  70. </plugin>
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-jar-plugin</artifactId>
  74. <configuration>
  75. <archive>
  76. <manifest>
  77. <addClasspath>true</addClasspath>
  78. <classpathPrefix>lib/</classpathPrefix>
  79. <mainClass>com.jzg.GateWayApplication</mainClass> <!-- 替换为你的主类 -->
  80. <useUniqueVersions>false</useUniqueVersions>
  81. </manifest>
  82. <manifestEntries>
  83. <Class-Path>config/</Class-Path>
  84. </manifestEntries>
  85. </archive>
  86. </configuration>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-resources-plugin</artifactId>
  91. <version>3.1.0</version>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. </project>