pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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-configservice</artifactId>
  28. <name>Apollo ConfigService</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. <!-- eureka -->
  40. <dependency>
  41. <groupId>org.springframework.cloud</groupId>
  42. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  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. <!-- duplicated with spring-security-core -->
  77. <exclusion>
  78. <groupId>org.springframework.security</groupId>
  79. <artifactId>spring-security-crypto</artifactId>
  80. </exclusion>
  81. </exclusions>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.sun.jersey.contribs</groupId>
  85. <artifactId>jersey-apache-client4</artifactId>
  86. </dependency>
  87. <!-- end of eureka -->
  88. <dependency>
  89. <groupId>com.alibaba.nacos</groupId>
  90. <artifactId>nacos-api</artifactId>
  91. <version>${nacos-discovery-api.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.h2database</groupId>
  95. <artifactId>h2</artifactId>
  96. <scope>test</scope>
  97. </dependency>
  98. <!-- JDK 1.8+ -->
  99. <dependency>
  100. <groupId>javax.xml.bind</groupId>
  101. <artifactId>jaxb-api</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.sun.xml.bind</groupId>
  105. <artifactId>jaxb-impl</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.glassfish.jaxb</groupId>
  109. <artifactId>jaxb-runtime</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>javax.activation</groupId>
  113. <artifactId>activation</artifactId>
  114. </dependency>
  115. <!-- end of JDK 1.8+ -->
  116. <!-- JDK 11+ -->
  117. <dependency>
  118. <groupId>org.javassist</groupId>
  119. <artifactId>javassist</artifactId>
  120. </dependency>
  121. <!-- end of JDK 11+ -->
  122. </dependencies>
  123. <build>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-maven-plugin</artifactId>
  128. </plugin>
  129. <plugin>
  130. <artifactId>maven-assembly-plugin</artifactId>
  131. <executions>
  132. <execution>
  133. <phase>package</phase>
  134. <goals>
  135. <goal>single</goal>
  136. </goals>
  137. <configuration>
  138. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  139. <appendAssemblyId>false</appendAssemblyId>
  140. <descriptors>
  141. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  142. </descriptors>
  143. </configuration>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <groupId>com.spotify</groupId>
  149. <artifactId>docker-maven-plugin</artifactId>
  150. <version>1.2.2</version>
  151. <configuration>
  152. <imageName>apolloconfig/${project.artifactId}</imageName>
  153. <imageTags>
  154. <imageTag>${project.version}</imageTag>
  155. <imageTag>latest</imageTag>
  156. </imageTags>
  157. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  158. <serverId>docker-hub</serverId>
  159. <buildArgs>
  160. <VERSION>${project.version}</VERSION>
  161. </buildArgs>
  162. <resources>
  163. <resource>
  164. <targetPath>/</targetPath>
  165. <directory>${project.build.directory}</directory>
  166. <include>*.zip</include>
  167. </resource>
  168. </resources>
  169. </configuration>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. <profiles>
  174. <profile>
  175. <id>nacos-discovery</id>
  176. <dependencies>
  177. <dependency>
  178. <groupId>com.alibaba.boot</groupId>
  179. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.alibaba</groupId>
  183. <artifactId>fastjson</artifactId>
  184. </dependency>
  185. </dependencies>
  186. </profile>
  187. </profiles>
  188. </project>