pom.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.jd.dt2</groupId>
  8. <artifactId>cgj-dt2-parent</artifactId>
  9. <version>0.0.1</version>
  10. <relativePath />
  11. </parent>
  12. <artifactId>configer</artifactId>
  13. <name>configer</name>
  14. <description>spring cloud-config配置中心</description>
  15. <dependencies>
  16. <!-- config配置中心服务端 -->
  17. <dependency>
  18. <groupId>org.springframework.cloud</groupId>
  19. <artifactId>spring-cloud-config-server</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-security</artifactId>
  24. </dependency>
  25. </dependencies>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-maven-plugin</artifactId>
  31. </plugin>
  32. <!-- 排除lib/*.jar依赖及yml配置文件,增量更新 -->
  33. <!-- <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-jar-plugin</artifactId>
  36. <configuration>
  37. <archive>
  38. <manifest>
  39. <addClasspath>true</addClasspath>
  40. <classpathPrefix>lib/</classpathPrefix>
  41. <mainClass>com.jd.ConfigerApplication</mainClass>
  42. </manifest>
  43. </archive>
  44. </configuration>
  45. </plugin> -->
  46. <!--添加配置跳过测试-->
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-surefire-plugin</artifactId>
  50. <configuration>
  51. <skipTests>true</skipTests>
  52. </configuration>
  53. </plugin>
  54. </plugins>
  55. <!-- <resources>
  56. <resource>
  57. <directory>src/main/resources</directory>
  58. <excludes>
  59. <exclude>**/*.yml</exclude>
  60. </excludes>
  61. </resource>
  62. </resources> -->
  63. </build>
  64. </project>