pom.xml 4.7 KB

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