pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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.1.8.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.sp</groupId>
  12. <artifactId>server-admin</artifactId>
  13. <version>4.2.0</version>
  14. <name>server-admin</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <java.version>1.8</java.version>
  20. <spring-cloud.version>Greenwich.SR3</spring-cloud.version>
  21. <spring-boot-admin.version>2.1.5</spring-boot-admin.version>
  22. <springbootversion>2.1.8.RELEASE</springbootversion>
  23. </properties>
  24. <dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-dependencies</artifactId>
  29. <version>${spring-cloud.version}</version>
  30. <type>pom</type>
  31. <scope>import</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>de.codecentric</groupId>
  35. <artifactId>spring-boot-admin-dependencies</artifactId>
  36. <version>${spring-boot-admin.version}</version>
  37. <type>pom</type>
  38. <scope>import</scope>
  39. </dependency>
  40. <!--整合安全机制-->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-security</artifactId>
  44. <version>2.2.0.RELEASE</version>
  45. </dependency>
  46. </dependencies>
  47. </dependencyManagement>
  48. <dependencies>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. <exclusions>
  53. <exclusion>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-tomcat</artifactId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-jetty</artifactId>
  62. </dependency>
  63. <!--邮件通知-->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-mail</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>de.codecentric</groupId>
  70. <artifactId>spring-boot-admin-starter-server</artifactId>
  71. </dependency>
  72. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security -->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-security</artifactId>
  76. </dependency>
  77. </dependencies>
  78. <build>
  79. <finalName>friendship-server-admin</finalName>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <configuration>
  85. <includeSystemScope>true</includeSystemScope>
  86. </configuration>
  87. </plugin>
  88. <!-- 打包的时候跳过测试用例 -->
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-surefire-plugin</artifactId>
  92. <version>2.18.1</version>
  93. <configuration>
  94. <skipTests>true</skipTests>
  95. </configuration>
  96. </plugin>
  97. </plugins>
  98. <resources>
  99. <resource>
  100. <directory>src/main/java</directory>
  101. <includes>
  102. <include>**/*.xml</include>
  103. </includes>
  104. <filtering>true</filtering>
  105. </resource>
  106. <resource>
  107. <directory>src/main/resources</directory>
  108. <includes>
  109. <include>**/*.*</include>
  110. </includes>
  111. <filtering>true</filtering>
  112. </resource>
  113. </resources>
  114. </build>
  115. </project>