pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. <groupId>com.slibra</groupId>
  6. <artifactId>monitor</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>monitor</name>
  9. <description>红杉-监控项目</description>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <spring-boot.version>2.6.13</spring-boot.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter</artifactId>
  20. </dependency>
  21. <!-- SpringBoot Web容器 -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.aliyun</groupId>
  28. <artifactId>aliyun-java-sdk-core</artifactId>
  29. <version>4.6.1</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.junit.platform</groupId>
  33. <artifactId>junit-platform-launcher</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>commons-net</groupId>
  38. <artifactId>commons-net</artifactId>
  39. <version>3.9.0</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-test</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.projectlombok</groupId>
  48. <artifactId>lombok</artifactId>
  49. </dependency>
  50. </dependencies>
  51. <dependencyManagement>
  52. <dependencies>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-dependencies</artifactId>
  56. <version>${spring-boot.version}</version>
  57. <type>pom</type>
  58. <scope>import</scope>
  59. </dependency>
  60. </dependencies>
  61. </dependencyManagement>
  62. <!--<build>
  63. <plugins>
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-compiler-plugin</artifactId>
  67. <version>3.8.1</version>
  68. <configuration>
  69. <source>1.8</source>
  70. <target>1.8</target>
  71. <encoding>UTF-8</encoding>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <version>${spring-boot.version}</version>
  78. <configuration>
  79. <mainClass>com.slibra.monitor.MonitorApplication</mainClass>
  80. <skip>true</skip>
  81. </configuration>
  82. <executions>
  83. <execution>
  84. <id>repackage</id>
  85. <goals>
  86. <goal>repackage</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. </plugins>
  92. </build>-->
  93. <build>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-maven-plugin</artifactId>
  98. <version>2.5.15</version>
  99. <configuration>
  100. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  101. </configuration>
  102. <executions>
  103. <execution>
  104. <goals>
  105. <goal>repackage</goal>
  106. </goals>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-war-plugin</artifactId>
  113. <version>3.1.0</version>
  114. <configuration>
  115. <failOnMissingWebXml>false</failOnMissingWebXml>
  116. <warName>${project.artifactId}</warName>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. <finalName>${project.artifactId}</finalName>
  121. </build>
  122. </project>