pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.2.RELEASE</version>
  9. </parent>
  10. <groupId>info.aspirecn.cloud.yysj</groupId>
  11. <artifactId>cloud-yysj-gateway-protal</artifactId>
  12. <version>1.0.0</version>
  13. <name>cloud-yysj-gateway-protal</name>
  14. <description>cloud yysj platform gateway protal</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
  18. </properties>
  19. <dependencies>
  20. <!--web-->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. <exclusions>
  25. <exclusion>
  26. <groupId>org.apache.logging.log4j</groupId>
  27. <artifactId>log4j-to-slf4j</artifactId>
  28. </exclusion>
  29. <exclusion>
  30. <groupId>org.apache.logging.log4j</groupId>
  31. <artifactId>log4j-api</artifactId>
  32. </exclusion>
  33. </exclusions>
  34. </dependency>
  35. <!--actuator-->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-actuator</artifactId>
  39. </dependency>
  40. <!--springcloud-kubernetes-config-->
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-starter-kubernetes-config</artifactId>
  44. </dependency>
  45. <!--configuration-processor-->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-configuration-processor</artifactId>
  49. </dependency>
  50. <!--lombok-->
  51. <dependency>
  52. <groupId>org.projectlombok</groupId>
  53. <artifactId>lombok</artifactId>
  54. <optional>true</optional>
  55. </dependency>
  56. <!-- zuul-->
  57. <dependency>
  58. <groupId>org.springframework.cloud</groupId>
  59. <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
  60. </dependency>
  61. <!-- feign -->
  62. <dependency>
  63. <groupId>org.springframework.cloud</groupId>
  64. <artifactId>spring-cloud-starter-openfeign</artifactId>
  65. </dependency>
  66. <!-- commons-lang -->
  67. <dependency>
  68. <groupId>org.apache.commons</groupId>
  69. <artifactId>commons-lang3</artifactId>
  70. <version>3.9</version>
  71. </dependency>
  72. <!-- fastjson -->
  73. <dependency>
  74. <groupId>com.alibaba</groupId>
  75. <artifactId>fastjson</artifactId>
  76. <version>1.2.76</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.logging.log4j</groupId>
  80. <artifactId>log4j-api</artifactId>
  81. <version>2.15.0</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.logging.log4j</groupId>
  85. <artifactId>log4j-to-slf4j</artifactId>
  86. <version>2.15.0</version>
  87. </dependency>
  88. </dependencies>
  89. <dependencyManagement>
  90. <dependencies>
  91. <dependency>
  92. <groupId>org.springframework.cloud</groupId>
  93. <artifactId>spring-cloud-dependencies</artifactId>
  94. <version>${spring-cloud.version}</version>
  95. <type>pom</type>
  96. <scope>import</scope>
  97. </dependency>
  98. </dependencies>
  99. </dependencyManagement>
  100. <build>
  101. <plugins>
  102. <plugin>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-maven-plugin</artifactId>
  105. </plugin>
  106. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  107. <!-- <plugin>-->
  108. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  109. <!-- <artifactId>maven-jar-plugin</artifactId>-->
  110. <!-- <configuration>-->
  111. <!-- <archive>-->
  112. <!-- <manifest>-->
  113. <!-- <addClasspath>true</addClasspath>-->
  114. <!-- <classpathPrefix>lib/</classpathPrefix>-->
  115. <!-- </manifest>-->
  116. <!-- </archive>-->
  117. <!-- </configuration>-->
  118. <!-- </plugin>-->
  119. <!-- &lt;!&ndash;设置 SpringBoot 打包插件不包含任何 Jar 依赖包&ndash;&gt;-->
  120. <!-- <plugin>-->
  121. <!-- <groupId>org.springframework.boot</groupId>-->
  122. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  123. <!-- <configuration>-->
  124. <!-- <includes>-->
  125. <!-- <include>-->
  126. <!-- <groupId>nothing</groupId>-->
  127. <!-- <artifactId>nothing</artifactId>-->
  128. <!-- </include>-->
  129. <!-- </includes>-->
  130. <!-- </configuration>-->
  131. <!-- </plugin>-->
  132. <!-- &lt;!&ndash;设置将 lib 拷贝到应用 Jar 外面&ndash;&gt;-->
  133. <!-- <plugin>-->
  134. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  135. <!-- <artifactId>maven-dependency-plugin</artifactId>-->
  136. <!-- <executions>-->
  137. <!-- <execution>-->
  138. <!-- <id>copy-dependencies</id>-->
  139. <!-- <phase>prepare-package</phase>-->
  140. <!-- <goals>-->
  141. <!-- <goal>copy-dependencies</goal>-->
  142. <!-- </goals>-->
  143. <!-- <configuration>-->
  144. <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
  145. <!-- </configuration>-->
  146. <!-- </execution>-->
  147. <!-- </executions>-->
  148. <!-- </plugin>-->
  149. </plugins>
  150. </build>
  151. </project>