pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.zlt</groupId>
  6. <artifactId>zlt-gateway</artifactId>
  7. <version>2.7.0</version>
  8. </parent>
  9. <artifactId>zuul-gateway</artifactId>
  10. <description>zuul网关</description>
  11. <dependencies>
  12. <!-- 公共实体类模块 -->
  13. <dependency>
  14. <groupId>com.zlt</groupId>
  15. <artifactId>zlt-config</artifactId>
  16. </dependency>
  17. <dependency>
  18. <groupId>com.zlt</groupId>
  19. <artifactId>zlt-auth-client-spring-boot-starter</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>com.zlt</groupId>
  23. <artifactId>zlt-ribbon-spring-boot-starter</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.zlt</groupId>
  27. <artifactId>zlt-sentinel-spring-boot-starter</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.alibaba.cloud</groupId>
  31. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  32. </dependency>
  33. <!--<dependency>
  34. <groupId>com.alibaba.cloud</groupId>
  35. <artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
  36. </dependency>-->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-web</artifactId>
  40. <!-- 移除tomcat容器-->
  41. <exclusions>
  42. <exclusion>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-tomcat</artifactId>
  45. </exclusion>
  46. </exclusions>
  47. </dependency>
  48. <!-- 替换undertow容器 -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-undertow</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework</groupId>
  55. <artifactId>spring-context-support</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-actuator</artifactId>
  60. </dependency>
  61. <!-- swagger -->
  62. <dependency>
  63. <groupId>com.didispace</groupId>
  64. <artifactId>swagger-butler-core</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.github.xiaoymin</groupId>
  68. <artifactId>swagger-bootstrap-ui</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.zyplayer</groupId>
  72. <artifactId>swagger-mg-ui</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.cloud</groupId>
  76. <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.baomidou</groupId>
  80. <artifactId>mybatis-plus-extension</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.squareup.okhttp3</groupId>
  84. <artifactId>okhttp</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>io.micrometer</groupId>
  88. <artifactId>micrometer-registry-prometheus</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>eu.bitwalker</groupId>
  92. <artifactId>UserAgentUtils</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-configuration-processor</artifactId>
  97. <optional>true</optional>
  98. </dependency>
  99. </dependencies>
  100. <build>
  101. <plugins>
  102. <plugin>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-maven-plugin</artifactId>
  105. <executions>
  106. <execution>
  107. <goals>
  108. <goal>repackage</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. <plugin>
  114. <groupId>com.spotify</groupId>
  115. <artifactId>docker-maven-plugin</artifactId>
  116. <configuration>
  117. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  118. <imageTags>
  119. <imageTag>${project.version}</imageTag>
  120. <imageTag>latest</imageTag>
  121. </imageTags>
  122. <forceTags>true</forceTags>
  123. <baseImage>${docker.baseImage}</baseImage>
  124. <volumes>${docker.volumes}</volumes>
  125. <env>
  126. <JAVA_OPTS>${docker.java.opts}</JAVA_OPTS>
  127. </env>
  128. <entryPoint>["sh","-c","java $JAVA_OPTS ${docker.java.security.egd} -jar /${project.build.finalName}.jar"]</entryPoint>
  129. <resources>
  130. <resource>
  131. <targetPath>/</targetPath>
  132. <directory>${project.build.directory}</directory>
  133. <include>${project.build.finalName}.jar</include>
  134. </resource>
  135. </resources>
  136. </configuration>
  137. </plugin>
  138. </plugins>
  139. <finalName>${project.artifactId}</finalName>
  140. </build>
  141. </project>