pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2023 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. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.session</groupId>
  64. <artifactId>spring-session-jdbc</artifactId>
  65. <scope>runtime</scope>
  66. </dependency>
  67. <!-- annotation processor -->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-configuration-processor</artifactId>
  71. <optional>true</optional>
  72. </dependency>
  73. <!-- /annotation processor -->
  74. <!-- yml processing -->
  75. <dependency>
  76. <groupId>org.yaml</groupId>
  77. <artifactId>snakeyaml</artifactId>
  78. </dependency>
  79. <!-- end of yml processing -->
  80. <!-- JDK 1.8+ -->
  81. <dependency>
  82. <groupId>javax.xml.bind</groupId>
  83. <artifactId>jaxb-api</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.sun.xml.bind</groupId>
  87. <artifactId>jaxb-impl</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.glassfish.jaxb</groupId>
  91. <artifactId>jaxb-runtime</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>javax.activation</groupId>
  95. <artifactId>activation</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.sun.mail</groupId>
  99. <artifactId>javax.mail</artifactId>
  100. </dependency>
  101. <!-- end of JDK 1.8+ -->
  102. <!-- JDK 11+ -->
  103. <dependency>
  104. <groupId>org.javassist</groupId>
  105. <artifactId>javassist</artifactId>
  106. </dependency>
  107. <!-- end of JDK 11+ -->
  108. <!-- test -->
  109. <dependency>
  110. <groupId>org.eclipse.jetty</groupId>
  111. <artifactId>jetty-server</artifactId>
  112. <scope>test</scope>
  113. </dependency>
  114. <!-- end of test -->
  115. </dependencies>
  116. <build>
  117. <plugins>
  118. <plugin>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-maven-plugin</artifactId>
  121. </plugin>
  122. <plugin>
  123. <artifactId>maven-assembly-plugin</artifactId>
  124. <executions>
  125. <execution>
  126. <phase>package</phase>
  127. <goals>
  128. <goal>single</goal>
  129. </goals>
  130. <configuration>
  131. <finalName>${project.artifactId}-${project.version}-${package.environment}</finalName>
  132. <appendAssemblyId>false</appendAssemblyId>
  133. <descriptors>
  134. <descriptor>src/assembly/assembly-descriptor.xml</descriptor>
  135. </descriptors>
  136. </configuration>
  137. </execution>
  138. </executions>
  139. </plugin>
  140. <plugin>
  141. <groupId>com.spotify</groupId>
  142. <artifactId>docker-maven-plugin</artifactId>
  143. <version>1.2.2</version>
  144. <configuration>
  145. <imageName>apolloconfig/${project.artifactId}</imageName>
  146. <imageTags>
  147. <imageTag>${project.version}</imageTag>
  148. <imageTag>latest</imageTag>
  149. </imageTags>
  150. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  151. <serverId>docker-hub</serverId>
  152. <buildArgs>
  153. <VERSION>${project.version}</VERSION>
  154. </buildArgs>
  155. <resources>
  156. <resource>
  157. <targetPath>/</targetPath>
  158. <directory>${project.build.directory}</directory>
  159. <include>*.zip</include>
  160. </resource>
  161. </resources>
  162. </configuration>
  163. </plugin>
  164. <plugin>
  165. <groupId>com.google.code.maven-replacer-plugin</groupId>
  166. <artifactId>replacer</artifactId>
  167. <version>1.5.3</version>
  168. <executions>
  169. <execution>
  170. <phase>prepare-package</phase>
  171. <goals>
  172. <goal>replace</goal>
  173. </goals>
  174. </execution>
  175. </executions>
  176. <configuration>
  177. <basedir>${project.build.directory}</basedir>
  178. <includes>
  179. <include>classes/static/*.html</include>
  180. <include>classes/static/**/*.html</include>
  181. </includes>
  182. <replacements>
  183. <replacement>
  184. <token>\.css\"</token>
  185. <value>.css?v=${maven.build.timestamp}\"</value>
  186. </replacement>
  187. <replacement>
  188. <token>\.js\"</token>
  189. <value>.js?v=${maven.build.timestamp}\"</value>
  190. </replacement>
  191. </replacements>
  192. </configuration>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. </project>