pom.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <packaging>jar</packaging>
  7. <parent>
  8. <groupId>com.va.shWasher</groupId>
  9. <artifactId>sw-extend</artifactId>
  10. <version>${revision}</version>
  11. </parent>
  12. <artifactId>sw-monitor-admin</artifactId>
  13. <name>${project.artifactId}</name>
  14. <description>应用监控 Server</description>
  15. <dependencies>
  16. <!-- SpringBoot Web容器 -->
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. <exclusions>
  21. <exclusion>
  22. <artifactId>spring-boot-starter-tomcat</artifactId>
  23. <groupId>org.springframework.boot</groupId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <!-- web 容器使用 undertow 性能更强 -->
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-undertow</artifactId>
  31. </dependency>
  32. <!-- spring security 安全认证 -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-security</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>de.codecentric</groupId>
  39. <artifactId>spring-boot-admin-starter-server</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>de.codecentric</groupId>
  43. <artifactId>spring-boot-admin-starter-client</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <finalName>${project.artifactId}</finalName>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-maven-plugin</artifactId>
  56. <version>${spring-boot.version}</version>
  57. <configuration>
  58. <!-- <fork>true</fork> &lt;!&ndash; 如果没有该配置,devtools不会生效 &ndash;&gt;-->
  59. </configuration>
  60. <executions>
  61. <execution>
  62. <goals>
  63. <goal>repackage</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. </plugins>
  69. </build>
  70. </project>