pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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>0.11.0</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-eureka-server</artifactId>
  26. <scope>test</scope>
  27. <exclusions>
  28. <exclusion>
  29. <artifactId>
  30. spring-cloud-starter-archaius
  31. </artifactId>
  32. <groupId>org.springframework.cloud</groupId>
  33. </exclusion>
  34. <exclusion>
  35. <artifactId>spring-cloud-starter-ribbon</artifactId>
  36. <groupId>org.springframework.cloud</groupId>
  37. </exclusion>
  38. <exclusion>
  39. <artifactId>ribbon-eureka</artifactId>
  40. <groupId>com.netflix.ribbon</groupId>
  41. </exclusion>
  42. <exclusion>
  43. <artifactId>aws-java-sdk-core</artifactId>
  44. <groupId>com.amazonaws</groupId>
  45. </exclusion>
  46. <exclusion>
  47. <artifactId>aws-java-sdk-ec2</artifactId>
  48. <groupId>com.amazonaws</groupId>
  49. </exclusion>
  50. <exclusion>
  51. <artifactId>aws-java-sdk-autoscaling</artifactId>
  52. <groupId>com.amazonaws</groupId>
  53. </exclusion>
  54. <exclusion>
  55. <artifactId>aws-java-sdk-sts</artifactId>
  56. <groupId>com.amazonaws</groupId>
  57. </exclusion>
  58. <exclusion>
  59. <artifactId>aws-java-sdk-route53</artifactId>
  60. <groupId>com.amazonaws</groupId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.h2database</groupId>
  66. <artifactId>h2</artifactId>
  67. <scope>test</scope>
  68. </dependency>
  69. </dependencies>
  70. <build>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <configuration>
  76. <executable>true</executable>
  77. </configuration>
  78. </plugin>
  79. <plugin>
  80. <groupId>com.spotify</groupId>
  81. <artifactId>docker-maven-plugin</artifactId>
  82. <version>0.4.13</version>
  83. <configuration>
  84. <imageName>${project.artifactId}</imageName>
  85. <dockerDirectory>src/main/docker</dockerDirectory>
  86. <resources>
  87. <resource>
  88. <targetPath>/</targetPath>
  89. <directory>${project.build.directory}</directory>
  90. <include>*.zip</include>
  91. </resource>
  92. </resources>
  93. </configuration>
  94. </plugin>
  95. <plugin>
  96. <artifactId>maven-assembly-plugin</artifactId>
  97. <executions>
  98. <execution>
  99. <phase>package</phase>
  100. <goals>
  101. <goal>single</goal>
  102. </goals>
  103. <configuration>
  104. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  105. <appendAssemblyId>false</appendAssemblyId>
  106. <descriptors>
  107. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  108. </descriptors>
  109. </configuration>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. </plugins>
  114. </build>
  115. </project>