pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.6.RELEASE</version>
  9. <relativePath/>
  10. </parent>
  11. <groupId>info.aspirecn.cloud.yysj</groupId>
  12. <artifactId>cloud-yysj-admin-k8s</artifactId>
  13. <version>1.0.0</version>
  14. <name>cloud-yysj-admin-k8s</name>
  15. <description>springboot admin application</description>
  16. <properties>
  17. <java.version>1.8</java.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. <dependency>
  36. <groupId>org.apache.logging.log4j</groupId>
  37. <artifactId>log4j-api</artifactId>
  38. <version>2.15.0</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.logging.log4j</groupId>
  42. <artifactId>log4j-to-slf4j</artifactId>
  43. <version>2.15.0</version>
  44. </dependency>
  45. <!--SpringBoot Admin-->
  46. <dependency>
  47. <groupId>de.codecentric</groupId>
  48. <artifactId>spring-boot-admin-starter-server</artifactId>
  49. <version>2.2.2</version>
  50. </dependency>
  51. <!--SpringCloud Kubernetes-->
  52. <dependency>
  53. <groupId>org.springframework.cloud</groupId>
  54. <artifactId>spring-cloud-kubernetes-discovery</artifactId>
  55. <version>1.1.1.RELEASE</version>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-maven-plugin</artifactId>
  63. </plugin>
  64. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  65. <!-- <plugin>-->
  66. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  67. <!-- <artifactId>maven-jar-plugin</artifactId>-->
  68. <!-- <configuration>-->
  69. <!-- <archive>-->
  70. <!-- <manifest>-->
  71. <!-- <addClasspath>true</addClasspath>-->
  72. <!-- <classpathPrefix>lib/</classpathPrefix>-->
  73. <!-- </manifest>-->
  74. <!-- </archive>-->
  75. <!-- </configuration>-->
  76. <!-- </plugin>-->
  77. <!-- &lt;!&ndash;设置 SpringBoot 打包插件不包含任何 Jar 依赖包&ndash;&gt;-->
  78. <!-- <plugin>-->
  79. <!-- <groupId>org.springframework.boot</groupId>-->
  80. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  81. <!-- <configuration>-->
  82. <!-- <includes>-->
  83. <!-- <include>-->
  84. <!-- <groupId>nothing</groupId>-->
  85. <!-- <artifactId>nothing</artifactId>-->
  86. <!-- </include>-->
  87. <!-- </includes>-->
  88. <!-- </configuration>-->
  89. <!-- </plugin>-->
  90. <!-- &lt;!&ndash;设置将 lib 拷贝到应用 Jar 外面&ndash;&gt;-->
  91. <!-- <plugin>-->
  92. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  93. <!-- <artifactId>maven-dependency-plugin</artifactId>-->
  94. <!-- <executions>-->
  95. <!-- <execution>-->
  96. <!-- <id>copy-dependencies</id>-->
  97. <!-- <phase>prepare-package</phase>-->
  98. <!-- <goals>-->
  99. <!-- <goal>copy-dependencies</goal>-->
  100. <!-- </goals>-->
  101. <!-- <configuration>-->
  102. <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
  103. <!-- </configuration>-->
  104. <!-- </execution>-->
  105. <!-- </executions>-->
  106. <!-- </plugin>-->
  107. </plugins>
  108. </build>
  109. </project>