pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2022 Apollo Authors
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. ~
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <parent>
  21. <groupId>com.ctrip.framework.apollo</groupId>
  22. <artifactId>apollo</artifactId>
  23. <version>${revision}</version>
  24. <relativePath>../pom.xml</relativePath>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>apollo-adminservice</artifactId>
  28. <name>Apollo AdminService</name>
  29. <properties>
  30. <github.path>${project.artifactId}</github.path>
  31. </properties>
  32. <dependencies>
  33. <!-- apollo -->
  34. <dependency>
  35. <groupId>com.ctrip.framework.apollo</groupId>
  36. <artifactId>apollo-biz</artifactId>
  37. </dependency>
  38. <!-- end of apollo -->
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  42. <scope>test</scope>
  43. <exclusions>
  44. <exclusion>
  45. <artifactId>spring-cloud-starter-netflix-archaius</artifactId>
  46. <groupId>org.springframework.cloud</groupId>
  47. </exclusion>
  48. <exclusion>
  49. <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
  50. <groupId>org.springframework.cloud</groupId>
  51. </exclusion>
  52. <exclusion>
  53. <artifactId>ribbon-eureka</artifactId>
  54. <groupId>com.netflix.ribbon</groupId>
  55. </exclusion>
  56. <exclusion>
  57. <artifactId>aws-java-sdk-core</artifactId>
  58. <groupId>com.amazonaws</groupId>
  59. </exclusion>
  60. <exclusion>
  61. <artifactId>aws-java-sdk-ec2</artifactId>
  62. <groupId>com.amazonaws</groupId>
  63. </exclusion>
  64. <exclusion>
  65. <artifactId>aws-java-sdk-autoscaling</artifactId>
  66. <groupId>com.amazonaws</groupId>
  67. </exclusion>
  68. <exclusion>
  69. <artifactId>aws-java-sdk-sts</artifactId>
  70. <groupId>com.amazonaws</groupId>
  71. </exclusion>
  72. <exclusion>
  73. <artifactId>aws-java-sdk-route53</artifactId>
  74. <groupId>com.amazonaws</groupId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.sun.jersey.contribs</groupId>
  80. <artifactId>jersey-apache-client4</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.h2database</groupId>
  85. <artifactId>h2</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <!-- JDK 1.8+ -->
  89. <dependency>
  90. <groupId>javax.xml.bind</groupId>
  91. <artifactId>jaxb-api</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.sun.xml.bind</groupId>
  95. <artifactId>jaxb-impl</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.glassfish.jaxb</groupId>
  99. <artifactId>jaxb-runtime</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>javax.activation</groupId>
  103. <artifactId>activation</artifactId>
  104. </dependency>
  105. <!-- end of JDK 1.8+ -->
  106. <!-- JDK 11+ -->
  107. <dependency>
  108. <groupId>org.javassist</groupId>
  109. <artifactId>javassist</artifactId>
  110. </dependency>
  111. <!-- end of JDK 11+ -->
  112. </dependencies>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-maven-plugin</artifactId>
  118. </plugin>
  119. <plugin>
  120. <artifactId>maven-assembly-plugin</artifactId>
  121. <executions>
  122. <execution>
  123. <phase>package</phase>
  124. <goals>
  125. <goal>single</goal>
  126. </goals>
  127. <configuration>
  128. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  129. <appendAssemblyId>false</appendAssemblyId>
  130. <descriptors>
  131. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  132. </descriptors>
  133. </configuration>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. <plugin>
  138. <groupId>com.spotify</groupId>
  139. <artifactId>docker-maven-plugin</artifactId>
  140. <version>1.2.2</version>
  141. <configuration>
  142. <imageName>apolloconfig/${project.artifactId}</imageName>
  143. <imageTags>
  144. <imageTag>${project.version}</imageTag>
  145. <imageTag>latest</imageTag>
  146. </imageTags>
  147. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  148. <serverId>docker-hub</serverId>
  149. <buildArgs>
  150. <VERSION>${project.version}</VERSION>
  151. </buildArgs>
  152. <resources>
  153. <resource>
  154. <targetPath>/</targetPath>
  155. <directory>${project.build.directory}</directory>
  156. <include>*.zip</include>
  157. </resource>
  158. </resources>
  159. </configuration>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. <profiles>
  164. <profile>
  165. <id>nacos-discovery</id>
  166. <dependencies>
  167. <dependency>
  168. <groupId>com.alibaba.boot</groupId>
  169. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.alibaba</groupId>
  173. <artifactId>fastjson</artifactId>
  174. </dependency>
  175. </dependencies>
  176. </profile>
  177. </profiles>
  178. </project>