pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <artifactId>config-server</artifactId>
  7. <packaging>jar</packaging>
  8. <name>config-server</name>
  9. <description>Config Server for Spring Boot</description>
  10. <parent>
  11. <groupId>com.diagbot</groupId>
  12. <artifactId>diagbotcloud</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. </parent>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-web</artifactId>
  19. <exclusions>
  20. <exclusion>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-tomcat</artifactId>
  23. </exclusion>
  24. </exclusions>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-undertow</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-config-server</artifactId>
  33. </dependency>
  34. <!-- actuator-->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-actuator</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>net.logstash.logback</groupId>
  45. <artifactId>logstash-logback-encoder</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.retry</groupId>
  49. <artifactId>spring-retry</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-aop</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.jolokia</groupId>
  57. <artifactId>jolokia-core</artifactId>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <plugins>
  62. <plugin>
  63. <artifactId>maven-dependency-plugin</artifactId>
  64. <executions>
  65. <execution>
  66. <id>copy</id>
  67. <phase>package</phase>
  68. <goals>
  69. <goal>copy-dependencies</goal>
  70. </goals>
  71. <configuration>
  72. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  73. </configuration>
  74. </execution>
  75. </executions>
  76. </plugin>
  77. <plugin>
  78. <artifactId>maven-resources-plugin</artifactId>
  79. <executions>
  80. <execution>
  81. <id>copy-resources</id>
  82. <phase>package</phase>
  83. <goals>
  84. <goal>copy-resources</goal>
  85. </goals>
  86. <configuration>
  87. <resources>
  88. <resource>
  89. <directory>src/main/resources</directory>
  90. </resource>
  91. </resources>
  92. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <artifactId>maven-jar-plugin</artifactId>
  99. <configuration>
  100. <excludes>
  101. <exclude>mapper</exclude>
  102. <exclude>*.**</exclude>
  103. <exclude>**/*.xml</exclude>
  104. <exclude>**/*.yml</exclude>
  105. </excludes>
  106. <archive>
  107. <manifest>
  108. <mainClass>${main-class}</mainClass>
  109. <addClasspath>true</addClasspath>
  110. <classpathPrefix>lib/</classpathPrefix>
  111. <useUniqueVersions>false</useUniqueVersions>
  112. </manifest>
  113. </archive>
  114. <outputDirectory>${project.build.directory}</outputDirectory>
  115. </configuration>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. </project>