1
0

pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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>1.7.0-SNAPSHOT</version>
  8. <relativePath>../pom.xml</relativePath>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>apollo-portal</artifactId>
  12. <name>Apollo Portal</name>
  13. <properties>
  14. <github.path>${project.artifactId}</github.path>
  15. <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>org.springframework.security</groupId>
  20. <artifactId>spring-security-ldap</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.ctrip.framework.apollo</groupId>
  24. <artifactId>apollo-common</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.ctrip.framework.apollo</groupId>
  28. <artifactId>apollo-openapi</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.h2database</groupId>
  32. <artifactId>h2</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <!-- JDK 1.8+ -->
  36. <dependency>
  37. <groupId>javax.xml.bind</groupId>
  38. <artifactId>jaxb-api</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.sun.xml.bind</groupId>
  42. <artifactId>jaxb-impl</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.glassfish.jaxb</groupId>
  46. <artifactId>jaxb-runtime</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>javax.activation</groupId>
  50. <artifactId>activation</artifactId>
  51. </dependency>
  52. <!-- end of JDK 1.8+ -->
  53. <!-- JDK 11+ -->
  54. <dependency>
  55. <groupId>org.javassist</groupId>
  56. <artifactId>javassist</artifactId>
  57. </dependency>
  58. <!-- end of JDK 11+ -->
  59. <!-- test -->
  60. <dependency>
  61. <groupId>org.eclipse.jetty</groupId>
  62. <artifactId>jetty-server</artifactId>
  63. <scope>test</scope>
  64. </dependency>
  65. <!-- end of test -->
  66. </dependencies>
  67. <build>
  68. <plugins>
  69. <plugin>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-maven-plugin</artifactId>
  72. <configuration>
  73. <executable>true</executable>
  74. </configuration>
  75. </plugin>
  76. <plugin>
  77. <artifactId>maven-assembly-plugin</artifactId>
  78. <executions>
  79. <execution>
  80. <phase>package</phase>
  81. <goals>
  82. <goal>single</goal>
  83. </goals>
  84. <configuration>
  85. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  86. <appendAssemblyId>false</appendAssemblyId>
  87. <descriptors>
  88. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  89. </descriptors>
  90. </configuration>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. <plugin>
  95. <groupId>com.spotify</groupId>
  96. <artifactId>docker-maven-plugin</artifactId>
  97. <version>1.2.2</version>
  98. <configuration>
  99. <imageName>apolloconfig/${project.artifactId}</imageName>
  100. <imageTags>
  101. <imageTag>${project.version}</imageTag>
  102. <imageTag>latest</imageTag>
  103. </imageTags>
  104. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  105. <serverId>docker-hub</serverId>
  106. <resources>
  107. <resource>
  108. <targetPath>/</targetPath>
  109. <directory>${project.build.directory}</directory>
  110. <include>*.zip</include>
  111. </resource>
  112. </resources>
  113. </configuration>
  114. </plugin>
  115. <plugin>
  116. <groupId>com.google.code.maven-replacer-plugin</groupId>
  117. <artifactId>replacer</artifactId>
  118. <version>1.5.3</version>
  119. <executions>
  120. <execution>
  121. <phase>prepare-package</phase>
  122. <goals>
  123. <goal>replace</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. <configuration>
  128. <basedir>${project.build.directory}</basedir>
  129. <includes>
  130. <include>classes/static/*.html</include>
  131. <include>classes/static/**/*.html</include>
  132. </includes>
  133. <replacements>
  134. <replacement>
  135. <token>\.css\"</token>
  136. <value>.css?v=${maven.build.timestamp}\"</value>
  137. </replacement>
  138. <replacement>
  139. <token>\.js\"</token>
  140. <value>.js?v=${maven.build.timestamp}\"</value>
  141. </replacement>
  142. </replacements>
  143. </configuration>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. <profiles>
  148. <profile>
  149. <id>ctrip</id>
  150. <dependencies>
  151. <dependency>
  152. <groupId>com.ctrip.framework.apollo-sso</groupId>
  153. <artifactId>apollo-sso-ctrip</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.ctrip.framework.apollo-ctrip-service</groupId>
  157. <artifactId>apollo-email-service</artifactId>
  158. </dependency>
  159. </dependencies>
  160. </profile>
  161. </profiles>
  162. </project>