pom.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2021 Apollo Authors
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. ~
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <parent>
  21. <groupId>com.ctrip.framework.apollo</groupId>
  22. <artifactId>apollo</artifactId>
  23. <version>${revision}</version>
  24. <relativePath>../pom.xml</relativePath>
  25. </parent>
  26. <modelVersion>4.0.0</modelVersion>
  27. <artifactId>apollo-portal</artifactId>
  28. <name>Apollo Portal</name>
  29. <properties>
  30. <github.path>${project.artifactId}</github.path>
  31. <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
  32. </properties>
  33. <dependencies>
  34. <dependency>
  35. <groupId>org.springframework.security</groupId>
  36. <artifactId>spring-security-ldap</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.ctrip.framework.apollo</groupId>
  40. <artifactId>apollo-common</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.ctrip.framework.apollo</groupId>
  44. <artifactId>apollo-openapi</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-oauth2-client</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.session</groupId>
  56. <artifactId>spring-session-core</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.session</groupId>
  60. <artifactId>spring-session-data-redis</artifactId>
  61. <scope>runtime</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.session</groupId>
  65. <artifactId>spring-session-jdbc</artifactId>
  66. <scope>runtime</scope>
  67. </dependency>
  68. <!-- yml processing -->
  69. <dependency>
  70. <groupId>org.yaml</groupId>
  71. <artifactId>snakeyaml</artifactId>
  72. </dependency>
  73. <!-- end of yml processing -->
  74. <!-- JDK 1.8+ -->
  75. <dependency>
  76. <groupId>javax.xml.bind</groupId>
  77. <artifactId>jaxb-api</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.sun.xml.bind</groupId>
  81. <artifactId>jaxb-impl</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.glassfish.jaxb</groupId>
  85. <artifactId>jaxb-runtime</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>javax.activation</groupId>
  89. <artifactId>activation</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.sun.mail</groupId>
  93. <artifactId>javax.mail</artifactId>
  94. </dependency>
  95. <!-- end of JDK 1.8+ -->
  96. <!-- JDK 11+ -->
  97. <dependency>
  98. <groupId>org.javassist</groupId>
  99. <artifactId>javassist</artifactId>
  100. </dependency>
  101. <!-- end of JDK 11+ -->
  102. <!-- test -->
  103. <dependency>
  104. <groupId>com.h2database</groupId>
  105. <artifactId>h2</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.eclipse.jetty</groupId>
  110. <artifactId>jetty-server</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <!-- end of test -->
  114. </dependencies>
  115. <build>
  116. <plugins>
  117. <plugin>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-maven-plugin</artifactId>
  120. </plugin>
  121. <plugin>
  122. <artifactId>maven-assembly-plugin</artifactId>
  123. <executions>
  124. <execution>
  125. <phase>package</phase>
  126. <goals>
  127. <goal>single</goal>
  128. </goals>
  129. <configuration>
  130. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  131. <appendAssemblyId>false</appendAssemblyId>
  132. <descriptors>
  133. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  134. </descriptors>
  135. </configuration>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. <plugin>
  140. <groupId>com.spotify</groupId>
  141. <artifactId>docker-maven-plugin</artifactId>
  142. <version>1.2.2</version>
  143. <configuration>
  144. <imageName>apolloconfig/${project.artifactId}</imageName>
  145. <imageTags>
  146. <imageTag>${project.version}</imageTag>
  147. <imageTag>latest</imageTag>
  148. </imageTags>
  149. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  150. <serverId>docker-hub</serverId>
  151. <buildArgs>
  152. <VERSION>${project.version}</VERSION>
  153. </buildArgs>
  154. <resources>
  155. <resource>
  156. <targetPath>/</targetPath>
  157. <directory>${project.build.directory}</directory>
  158. <include>*.zip</include>
  159. </resource>
  160. </resources>
  161. </configuration>
  162. </plugin>
  163. <plugin>
  164. <groupId>com.google.code.maven-replacer-plugin</groupId>
  165. <artifactId>replacer</artifactId>
  166. <version>1.5.3</version>
  167. <executions>
  168. <execution>
  169. <phase>prepare-package</phase>
  170. <goals>
  171. <goal>replace</goal>
  172. </goals>
  173. </execution>
  174. </executions>
  175. <configuration>
  176. <basedir>${project.build.directory}</basedir>
  177. <includes>
  178. <include>classes/static/*.html</include>
  179. <include>classes/static/**/*.html</include>
  180. </includes>
  181. <replacements>
  182. <replacement>
  183. <token>\.css\"</token>
  184. <value>.css?v=${maven.build.timestamp}\"</value>
  185. </replacement>
  186. <replacement>
  187. <token>\.js\"</token>
  188. <value>.js?v=${maven.build.timestamp}\"</value>
  189. </replacement>
  190. </replacements>
  191. </configuration>
  192. </plugin>
  193. </plugins>
  194. </build>
  195. <profiles>
  196. <profile>
  197. <id>ctrip</id>
  198. <dependencies>
  199. <dependency>
  200. <groupId>com.ctrip.framework.apollo-sso</groupId>
  201. <artifactId>apollo-sso-ctrip</artifactId>
  202. </dependency>
  203. <dependency>
  204. <groupId>com.ctrip.framework.apollo-ctrip-service</groupId>
  205. <artifactId>apollo-email-service</artifactId>
  206. </dependency>
  207. </dependencies>
  208. </profile>
  209. </profiles>
  210. </project>