pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <parent>
  5. <groupId>com.ctrip.framework.apollo</groupId>
  6. <artifactId>apollo</artifactId>
  7. <version>1.5.1</version>
  8. <relativePath>../pom.xml</relativePath>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>apollo-adminservice</artifactId>
  12. <name>Apollo AdminService</name>
  13. <properties>
  14. <github.path>${project.artifactId}</github.path>
  15. </properties>
  16. <dependencies>
  17. <!-- apollo -->
  18. <dependency>
  19. <groupId>com.ctrip.framework.apollo</groupId>
  20. <artifactId>apollo-biz</artifactId>
  21. </dependency>
  22. <!-- end of apollo -->
  23. <dependency>
  24. <groupId>org.springframework.cloud</groupId>
  25. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  26. <scope>test</scope>
  27. <exclusions>
  28. <exclusion>
  29. <artifactId>spring-cloud-starter-netflix-archaius</artifactId>
  30. <groupId>org.springframework.cloud</groupId>
  31. </exclusion>
  32. <exclusion>
  33. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  34. <groupId>org.springframework.cloud</groupId>
  35. </exclusion>
  36. <exclusion>
  37. <artifactId>ribbon-eureka</artifactId>
  38. <groupId>com.netflix.ribbon</groupId>
  39. </exclusion>
  40. <exclusion>
  41. <artifactId>aws-java-sdk-core</artifactId>
  42. <groupId>com.amazonaws</groupId>
  43. </exclusion>
  44. <exclusion>
  45. <artifactId>aws-java-sdk-ec2</artifactId>
  46. <groupId>com.amazonaws</groupId>
  47. </exclusion>
  48. <exclusion>
  49. <artifactId>aws-java-sdk-autoscaling</artifactId>
  50. <groupId>com.amazonaws</groupId>
  51. </exclusion>
  52. <exclusion>
  53. <artifactId>aws-java-sdk-sts</artifactId>
  54. <groupId>com.amazonaws</groupId>
  55. </exclusion>
  56. <exclusion>
  57. <artifactId>aws-java-sdk-route53</artifactId>
  58. <groupId>com.amazonaws</groupId>
  59. </exclusion>
  60. </exclusions>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.h2database</groupId>
  64. <artifactId>h2</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <!-- JDK 1.8+ -->
  68. <dependency>
  69. <groupId>javax.xml.bind</groupId>
  70. <artifactId>jaxb-api</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.sun.xml.bind</groupId>
  74. <artifactId>jaxb-impl</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.glassfish.jaxb</groupId>
  78. <artifactId>jaxb-runtime</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>javax.activation</groupId>
  82. <artifactId>activation</artifactId>
  83. </dependency>
  84. <!-- end of JDK 1.8+ -->
  85. <!-- JDK 11+ -->
  86. <dependency>
  87. <groupId>org.javassist</groupId>
  88. <artifactId>javassist</artifactId>
  89. </dependency>
  90. <!-- end of JDK 11+ -->
  91. </dependencies>
  92. <build>
  93. <plugins>
  94. <plugin>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-maven-plugin</artifactId>
  97. <configuration>
  98. <executable>true</executable>
  99. </configuration>
  100. </plugin>
  101. <plugin>
  102. <groupId>com.spotify</groupId>
  103. <artifactId>docker-maven-plugin</artifactId>
  104. <version>0.4.13</version>
  105. <configuration>
  106. <imageName>${project.artifactId}</imageName>
  107. <dockerDirectory>src/main/docker</dockerDirectory>
  108. <resources>
  109. <resource>
  110. <targetPath>/</targetPath>
  111. <directory>${project.build.directory}</directory>
  112. <include>*.zip</include>
  113. </resource>
  114. </resources>
  115. </configuration>
  116. </plugin>
  117. <plugin>
  118. <artifactId>maven-assembly-plugin</artifactId>
  119. <executions>
  120. <execution>
  121. <phase>package</phase>
  122. <goals>
  123. <goal>single</goal>
  124. </goals>
  125. <configuration>
  126. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  127. <appendAssemblyId>false</appendAssemblyId>
  128. <descriptors>
  129. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  130. </descriptors>
  131. </configuration>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. </project>