pom.xml 4.9 KB

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