pom.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.jd.dt2</groupId>
  8. <artifactId>cgj-dt2-parent</artifactId>
  9. <version>0.0.1</version>
  10. </parent>
  11. <artifactId>gateway</artifactId>
  12. <name>gateway</name>
  13. <description>spring cloud-gateway网关</description>
  14. <dependencies>
  15. <!-- gateway网关 -->
  16. <dependency>
  17. <groupId>org.springframework.cloud</groupId>
  18. <artifactId>spring-cloud-starter-gateway</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework.cloud</groupId>
  22. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.github.xiaoymin</groupId>
  26. <artifactId>knife4j-spring-boot-starter</artifactId>
  27. <version>${knife4j.version}</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.github.xiaoymin</groupId>
  31. <artifactId>knife4j-spring-ui</artifactId>
  32. <version>${knife4j.version}</version>
  33. </dependency>
  34. </dependencies>
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-maven-plugin</artifactId>
  40. </plugin>
  41. <!-- <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-jar-plugin</artifactId>
  44. <configuration>
  45. <archive>
  46. <manifest>
  47. <addClasspath>true</addClasspath>
  48. <classpathPrefix>lib/</classpathPrefix>
  49. <mainClass>com.jd.GatewayApplication</mainClass>
  50. </manifest>
  51. </archive>
  52. </configuration>
  53. </plugin> -->
  54. <!-- 添加配置跳过测试 -->
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-surefire-plugin</artifactId>
  58. <configuration>
  59. <skipTests>true</skipTests>
  60. </configuration>
  61. </plugin>
  62. </plugins>
  63. <!-- <resources>
  64. <resource>
  65. <directory>src/main/resources</directory>
  66. <excludes>
  67. <exclude>**/*.yml</exclude>
  68. </excludes>
  69. </resource>
  70. </resources> -->
  71. </build>
  72. </project>