1
0

pom.xml 6.0 KB

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