pom.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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>com.jd.dt2</groupId>
  7. <artifactId>cgj-dt2-parent</artifactId>
  8. <version>0.0.1</version>
  9. </parent>
  10. <artifactId>admin</artifactId>
  11. <name>admin</name>
  12. <description>监控服务器</description>
  13. <dependencies>
  14. <dependency>
  15. <groupId>de.codecentric</groupId>
  16. <artifactId>spring-boot-admin-starter-server</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-security</artifactId>
  21. </dependency>
  22. </dependencies>
  23. <build>
  24. <plugins>
  25. <plugin>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-maven-plugin</artifactId>
  28. </plugin>
  29. <!-- 排除lib/*.jar依赖及yml配置文件,增量更新 -->
  30. <!-- <plugin>
  31. <groupId>org.apache.maven.plugins</groupId>
  32. <artifactId>maven-jar-plugin</artifactId>
  33. <configuration>
  34. <archive>
  35. <manifest>
  36. <addClasspath>true</addClasspath>
  37. <classpathPrefix>lib/</classpathPrefix>
  38. <mainClass>com.jd.AdminApplication</mainClass>
  39. </manifest>
  40. </archive>
  41. </configuration>
  42. </plugin> -->
  43. <!-- 添加配置跳过测试 -->
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-surefire-plugin</artifactId>
  47. <configuration>
  48. <skipTests>true</skipTests>
  49. </configuration>
  50. </plugin>
  51. </plugins>
  52. <!-- <resources>
  53. <resource>
  54. <directory>src/main/resources</directory>
  55. <excludes>
  56. <exclude>**/*.yml</exclude>
  57. </excludes>
  58. </resource>
  59. </resources> -->
  60. </build>
  61. </project>