pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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>${revision}</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.sun.jersey.contribs</groupId>
  64. <artifactId>jersey-apache-client4</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.h2database</groupId>
  69. <artifactId>h2</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. <!-- JDK 1.8+ -->
  73. <dependency>
  74. <groupId>javax.xml.bind</groupId>
  75. <artifactId>jaxb-api</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.sun.xml.bind</groupId>
  79. <artifactId>jaxb-impl</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.glassfish.jaxb</groupId>
  83. <artifactId>jaxb-runtime</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>javax.activation</groupId>
  87. <artifactId>activation</artifactId>
  88. </dependency>
  89. <!-- end of JDK 1.8+ -->
  90. <!-- JDK 11+ -->
  91. <dependency>
  92. <groupId>org.javassist</groupId>
  93. <artifactId>javassist</artifactId>
  94. </dependency>
  95. <!-- end of JDK 11+ -->
  96. </dependencies>
  97. <build>
  98. <plugins>
  99. <plugin>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-maven-plugin</artifactId>
  102. </plugin>
  103. <plugin>
  104. <artifactId>maven-assembly-plugin</artifactId>
  105. <executions>
  106. <execution>
  107. <phase>package</phase>
  108. <goals>
  109. <goal>single</goal>
  110. </goals>
  111. <configuration>
  112. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  113. <appendAssemblyId>false</appendAssemblyId>
  114. <descriptors>
  115. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  116. </descriptors>
  117. </configuration>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <plugin>
  122. <groupId>com.spotify</groupId>
  123. <artifactId>docker-maven-plugin</artifactId>
  124. <version>1.2.2</version>
  125. <configuration>
  126. <imageName>apolloconfig/${project.artifactId}</imageName>
  127. <imageTags>
  128. <imageTag>${project.version}</imageTag>
  129. <imageTag>latest</imageTag>
  130. </imageTags>
  131. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  132. <serverId>docker-hub</serverId>
  133. <resources>
  134. <resource>
  135. <targetPath>/</targetPath>
  136. <directory>${project.build.directory}</directory>
  137. <include>*.zip</include>
  138. </resource>
  139. </resources>
  140. </configuration>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. <profiles>
  145. <profile>
  146. <id>nacos-discovery</id>
  147. <dependencies>
  148. <dependency>
  149. <groupId>com.alibaba.boot</groupId>
  150. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.alibaba</groupId>
  154. <artifactId>fastjson</artifactId>
  155. </dependency>
  156. </dependencies>
  157. </profile>
  158. </profiles>
  159. </project>