1
0

pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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-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>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-oauth2-client</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
  37. </dependency>
  38. <!-- yml processing -->
  39. <dependency>
  40. <groupId>org.yaml</groupId>
  41. <artifactId>snakeyaml</artifactId>
  42. </dependency>
  43. <!-- end of yml processing -->
  44. <!-- JDK 1.8+ -->
  45. <dependency>
  46. <groupId>javax.xml.bind</groupId>
  47. <artifactId>jaxb-api</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.sun.xml.bind</groupId>
  51. <artifactId>jaxb-impl</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.glassfish.jaxb</groupId>
  55. <artifactId>jaxb-runtime</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>javax.activation</groupId>
  59. <artifactId>activation</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.sun.mail</groupId>
  63. <artifactId>javax.mail</artifactId>
  64. </dependency>
  65. <!-- end of JDK 1.8+ -->
  66. <!-- JDK 11+ -->
  67. <dependency>
  68. <groupId>org.javassist</groupId>
  69. <artifactId>javassist</artifactId>
  70. </dependency>
  71. <!-- end of JDK 11+ -->
  72. <!-- test -->
  73. <dependency>
  74. <groupId>com.h2database</groupId>
  75. <artifactId>h2</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.eclipse.jetty</groupId>
  80. <artifactId>jetty-server</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <!-- end of test -->
  84. </dependencies>
  85. <build>
  86. <plugins>
  87. <plugin>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-maven-plugin</artifactId>
  90. </plugin>
  91. <plugin>
  92. <artifactId>maven-assembly-plugin</artifactId>
  93. <executions>
  94. <execution>
  95. <phase>package</phase>
  96. <goals>
  97. <goal>single</goal>
  98. </goals>
  99. <configuration>
  100. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  101. <appendAssemblyId>false</appendAssemblyId>
  102. <descriptors>
  103. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  104. </descriptors>
  105. </configuration>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>com.spotify</groupId>
  111. <artifactId>docker-maven-plugin</artifactId>
  112. <version>1.2.2</version>
  113. <configuration>
  114. <imageName>apolloconfig/${project.artifactId}</imageName>
  115. <imageTags>
  116. <imageTag>${project.version}</imageTag>
  117. <imageTag>latest</imageTag>
  118. </imageTags>
  119. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  120. <serverId>docker-hub</serverId>
  121. <resources>
  122. <resource>
  123. <targetPath>/</targetPath>
  124. <directory>${project.build.directory}</directory>
  125. <include>*.zip</include>
  126. </resource>
  127. </resources>
  128. </configuration>
  129. </plugin>
  130. <plugin>
  131. <groupId>com.google.code.maven-replacer-plugin</groupId>
  132. <artifactId>replacer</artifactId>
  133. <version>1.5.3</version>
  134. <executions>
  135. <execution>
  136. <phase>prepare-package</phase>
  137. <goals>
  138. <goal>replace</goal>
  139. </goals>
  140. </execution>
  141. </executions>
  142. <configuration>
  143. <basedir>${project.build.directory}</basedir>
  144. <includes>
  145. <include>classes/static/*.html</include>
  146. <include>classes/static/**/*.html</include>
  147. </includes>
  148. <replacements>
  149. <replacement>
  150. <token>\.css\"</token>
  151. <value>.css?v=${maven.build.timestamp}\"</value>
  152. </replacement>
  153. <replacement>
  154. <token>\.js\"</token>
  155. <value>.js?v=${maven.build.timestamp}\"</value>
  156. </replacement>
  157. </replacements>
  158. </configuration>
  159. </plugin>
  160. </plugins>
  161. </build>
  162. <profiles>
  163. <profile>
  164. <id>ctrip</id>
  165. <dependencies>
  166. <dependency>
  167. <groupId>com.ctrip.framework.apollo-sso</groupId>
  168. <artifactId>apollo-sso-ctrip</artifactId>
  169. </dependency>
  170. <dependency>
  171. <groupId>com.ctrip.framework.apollo-ctrip-service</groupId>
  172. <artifactId>apollo-email-service</artifactId>
  173. </dependency>
  174. </dependencies>
  175. </profile>
  176. </profiles>
  177. </project>