pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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.2.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. <dependency>
  23. <groupId>com.ctrip.framework.apollo</groupId>
  24. <artifactId>apollo-buildtools</artifactId>
  25. <scope>test</scope>
  26. </dependency>
  27. <!-- end of apollo -->
  28. <dependency>
  29. <groupId>org.springframework.cloud</groupId>
  30. <artifactId>spring-cloud-starter-eureka-server</artifactId>
  31. <scope>test</scope>
  32. <exclusions>
  33. <exclusion>
  34. <artifactId>
  35. spring-cloud-starter-archaius
  36. </artifactId>
  37. <groupId>org.springframework.cloud</groupId>
  38. </exclusion>
  39. <exclusion>
  40. <artifactId>spring-cloud-starter-ribbon</artifactId>
  41. <groupId>org.springframework.cloud</groupId>
  42. </exclusion>
  43. <exclusion>
  44. <artifactId>ribbon-eureka</artifactId>
  45. <groupId>com.netflix.ribbon</groupId>
  46. </exclusion>
  47. <exclusion>
  48. <artifactId>aws-java-sdk-core</artifactId>
  49. <groupId>com.amazonaws</groupId>
  50. </exclusion>
  51. <exclusion>
  52. <artifactId>aws-java-sdk-ec2</artifactId>
  53. <groupId>com.amazonaws</groupId>
  54. </exclusion>
  55. <exclusion>
  56. <artifactId>aws-java-sdk-autoscaling</artifactId>
  57. <groupId>com.amazonaws</groupId>
  58. </exclusion>
  59. <exclusion>
  60. <artifactId>aws-java-sdk-sts</artifactId>
  61. <groupId>com.amazonaws</groupId>
  62. </exclusion>
  63. <exclusion>
  64. <artifactId>aws-java-sdk-route53</artifactId>
  65. <groupId>com.amazonaws</groupId>
  66. </exclusion>
  67. </exclusions>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.h2database</groupId>
  71. <artifactId>h2</artifactId>
  72. <scope>test</scope>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-maven-plugin</artifactId>
  80. <configuration>
  81. <executable>true</executable>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <artifactId>maven-assembly-plugin</artifactId>
  86. <executions>
  87. <execution>
  88. <phase>package</phase>
  89. <goals>
  90. <goal>single</goal>
  91. </goals>
  92. <configuration>
  93. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  94. <appendAssemblyId>false</appendAssemblyId>
  95. <descriptors>
  96. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  97. </descriptors>
  98. </configuration>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. </plugins>
  103. </build>
  104. <profiles>
  105. <profile>
  106. <id>github</id>
  107. <properties>
  108. <package.environment>github</package.environment>
  109. </properties>
  110. <dependencies>
  111. <!-- disable cat for outside use -->
  112. <dependency>
  113. <groupId>com.ctrip.framework.apollo</groupId>
  114. <artifactId>apollo-buildtools</artifactId>
  115. </dependency>
  116. </dependencies>
  117. </profile>
  118. </profiles>
  119. </project>