pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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.yihu.jkzl</groupId>
  6. <artifactId>apollo</artifactId>
  7. <version>1.1.0-RELEASE</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.yihu.jkzl</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</artifactId>
  26. <version>1.0.3.RELEASE</version>
  27. </dependency>
  28. <!-- eureka -->
  29. <dependency>
  30. <groupId>org.springframework.cloud</groupId>
  31. <artifactId>spring-cloud-starter-eureka-server</artifactId>
  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. <!-- duplicated with spring-security-core -->
  68. <exclusion>
  69. <groupId>org.springframework.security</groupId>
  70. <artifactId>spring-security-crypto</artifactId>
  71. </exclusion>
  72. </exclusions>
  73. </dependency>
  74. <!-- end of eureka -->
  75. <dependency>
  76. <groupId>com.h2database</groupId>
  77. <artifactId>h2</artifactId>
  78. <scope>test</scope>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-maven-plugin</artifactId>
  86. <configuration>
  87. <executable>true</executable>
  88. </configuration>
  89. </plugin>
  90. <plugin>
  91. <groupId>com.spotify</groupId>
  92. <artifactId>docker-maven-plugin</artifactId>
  93. <version>0.4.13</version>
  94. <configuration>
  95. <imageName>${project.artifactId}</imageName>
  96. <dockerDirectory>src/main/docker</dockerDirectory>
  97. <resources>
  98. <resource>
  99. <targetPath>/</targetPath>
  100. <directory>${project.build.directory}</directory>
  101. <include>*.zip</include>
  102. </resource>
  103. </resources>
  104. </configuration>
  105. </plugin>
  106. <plugin>
  107. <artifactId>maven-assembly-plugin</artifactId>
  108. <executions>
  109. <execution>
  110. <phase>package</phase>
  111. <goals>
  112. <goal>single</goal>
  113. </goals>
  114. <configuration>
  115. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  116. <appendAssemblyId>false</appendAssemblyId>
  117. <descriptors>
  118. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  119. </descriptors>
  120. </configuration>
  121. </execution>
  122. </executions>
  123. </plugin>
  124. </plugins>
  125. </build>
  126. </project>