pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2023 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. <!-- JDK 1.8+ -->
  94. <dependency>
  95. <groupId>javax.xml.bind</groupId>
  96. <artifactId>jaxb-api</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.sun.xml.bind</groupId>
  100. <artifactId>jaxb-impl</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.glassfish.jaxb</groupId>
  104. <artifactId>jaxb-runtime</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>javax.activation</groupId>
  108. <artifactId>activation</artifactId>
  109. </dependency>
  110. <!-- end of JDK 1.8+ -->
  111. <!-- JDK 11+ -->
  112. <dependency>
  113. <groupId>org.javassist</groupId>
  114. <artifactId>javassist</artifactId>
  115. </dependency>
  116. <!-- end of JDK 11+ -->
  117. </dependencies>
  118. <build>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-maven-plugin</artifactId>
  123. </plugin>
  124. <plugin>
  125. <artifactId>maven-assembly-plugin</artifactId>
  126. <executions>
  127. <execution>
  128. <phase>package</phase>
  129. <goals>
  130. <goal>single</goal>
  131. </goals>
  132. <configuration>
  133. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  134. <appendAssemblyId>false</appendAssemblyId>
  135. <descriptors>
  136. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  137. </descriptors>
  138. </configuration>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <plugin>
  143. <groupId>com.spotify</groupId>
  144. <artifactId>docker-maven-plugin</artifactId>
  145. <version>1.2.2</version>
  146. <configuration>
  147. <imageName>apolloconfig/${project.artifactId}</imageName>
  148. <imageTags>
  149. <imageTag>${project.version}</imageTag>
  150. <imageTag>latest</imageTag>
  151. </imageTags>
  152. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  153. <serverId>docker-hub</serverId>
  154. <buildArgs>
  155. <VERSION>${project.version}</VERSION>
  156. </buildArgs>
  157. <resources>
  158. <resource>
  159. <targetPath>/</targetPath>
  160. <directory>${project.build.directory}</directory>
  161. <include>*.zip</include>
  162. </resource>
  163. </resources>
  164. </configuration>
  165. </plugin>
  166. </plugins>
  167. </build>
  168. <profiles>
  169. <profile>
  170. <id>nacos-discovery</id>
  171. <dependencies>
  172. <dependency>
  173. <groupId>com.alibaba.boot</groupId>
  174. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.alibaba</groupId>
  178. <artifactId>fastjson</artifactId>
  179. </dependency>
  180. </dependencies>
  181. </profile>
  182. </profiles>
  183. </project>