You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <!--
  2. ~ Licensed to the Apache Software Foundation (ASF) under one
  3. ~ or more contributor license agreements. See the NOTICE file
  4. ~ distributed with this work for additional information
  5. ~ regarding copyright ownership. The ASF licenses this file
  6. ~ to you under the Apache License, Version 2.0 (the
  7. ~ "License"); you may not use this file except in compliance
  8. ~ with the License. You may obtain a copy of the License at
  9. ~
  10. ~ http://www.apache.org/licenses/LICENSE-2.0
  11. ~
  12. ~ Unless required by applicable law or agreed to in writing,
  13. ~ software distributed under the License is distributed on an
  14. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. ~ KIND, either express or implied. See the License for the
  16. ~ specific language governing permissions and limitations
  17. ~ under the License.
  18. -->
  19. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <parent>
  21. <groupId>org.apache.archiva</groupId>
  22. <artifactId>archiva</artifactId>
  23. <version>3.0.0-SNAPSHOT</version>
  24. </parent>
  25. <modelVersion>4.0.0</modelVersion>
  26. <artifactId>archiva-docs</artifactId>
  27. <packaging>pom</packaging>
  28. <name>Archiva :: Documentation</name>
  29. <url>https://archiva.apache.org/docs/${project.version}/</url>
  30. <properties>
  31. <siteFilePath>${user.home}/archiva-sites/archiva-docs-${project.version}/</siteFilePath>
  32. <maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
  33. <releaseDate>${maven.build.timestamp}</releaseDate>
  34. <!-- The git repository, where the site content is placed -->
  35. <siteRepositoryUrl>scm:git:https://gitbox.apache.org/repos/asf/archiva-web-content.git</siteRepositoryUrl>
  36. <scmPubCheckoutDirectory>${basedir}/.site-content</scmPubCheckoutDirectory>
  37. <scmPublishBranch>asf-staging</scmPublishBranch>
  38. <scmPublishPath>/docs/${project.version}</scmPublishPath>
  39. </properties>
  40. <build>
  41. <pluginManagement>
  42. <plugins>
  43. <plugin>
  44. <groupId>org.apache.rat</groupId>
  45. <artifactId>apache-rat-plugin</artifactId>
  46. <configuration>
  47. <excludes>
  48. <exclude>src/site/resources/css/*.css</exclude>
  49. <exclude>src/site/resources/js/*.js</exclude>
  50. <exclude>*.sh</exclude>
  51. <exclude>.site-content/**</exclude>
  52. <exclude>git-sparse-checkout-pattern</exclude>
  53. <exclude>README.*</exclude>
  54. </excludes>
  55. </configuration>
  56. </plugin>
  57. </plugins>
  58. </pluginManagement>
  59. <plugins>
  60. <plugin>
  61. <!--
  62. SCM Publish plugin.
  63. We deactivated the deletion, because the patterns for ignorePathsToDelete does only use the file/directory names
  64. not the relative paths.
  65. Site plugin is deploying into the subdirectory docs/${project.version} the publish plugin is copying from
  66. target directly.
  67. -->
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-scm-publish-plugin</artifactId>
  70. <configuration>
  71. <checkinComment>Apache Archiva Versioned docs for ${project.version}</checkinComment>
  72. <skipDeletedFiles>true</skipDeletedFiles>
  73. <content>${project.build.directory}/staging</content>
  74. <tryUpdate>true</tryUpdate>
  75. <!--
  76. <ignorePathsToDelete>
  77. <path>%regex[^(?!docs/).*$]</path>
  78. </ignorePathsToDelete>
  79. -->
  80. </configuration>
  81. <executions>
  82. <execution>
  83. <id>scm-publish</id>
  84. <phase>site-deploy</phase>
  85. <goals>
  86. <goal>publish-scm</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-site-plugin</artifactId>
  94. <configuration>
  95. <skipDeploy>true</skipDeploy>
  96. <stagingDirectory>${project.build.directory}/staging${scmPublishPath}/</stagingDirectory>
  97. </configuration>
  98. <executions>
  99. <execution>
  100. <id>site-generate-resources</id>
  101. <phase>generate-resources</phase>
  102. <goals>
  103. <goal>site</goal>
  104. </goals>
  105. </execution>
  106. <execution>
  107. <id>stage-for-scm-publish</id>
  108. <phase>post-site</phase>
  109. <goals>
  110. <goal>stage</goal>
  111. </goals>
  112. <configuration>
  113. <skipDeploy>false</skipDeploy>
  114. </configuration>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-dependency-plugin</artifactId>
  121. <executions>
  122. <execution>
  123. <id>archiva-rest-api-docs-extract</id>
  124. <phase>site</phase>
  125. <goals>
  126. <goal>unpack-dependencies</goal>
  127. </goals>
  128. <configuration>
  129. <includeArtifactIds>archiva-rest-api,archiva-web-common,redback-rest-api</includeArtifactIds>
  130. <outputDirectory>${project.build.directory}/site/</outputDirectory>
  131. <excludes>META-INF/**,org/**</excludes>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. </plugins>
  137. <finalName>apache-archiva-${project.version}</finalName>
  138. </build>
  139. <dependencies>
  140. <dependency>
  141. <groupId>org.apache.archiva</groupId>
  142. <artifactId>archiva-rest-api</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.apache.archiva</groupId>
  146. <artifactId>archiva-web-common</artifactId>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.archiva.redback</groupId>
  150. <artifactId>redback-rest-api</artifactId>
  151. </dependency>
  152. </dependencies>
  153. <reporting>
  154. <excludeDefaults>true</excludeDefaults>
  155. <plugins>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-project-info-reports-plugin</artifactId>
  159. <version>${maven-project-info-reports-plugin.version}</version>
  160. <reportSets>
  161. <reportSet>
  162. <reports>
  163. <report>licenses</report>
  164. <report>team</report>
  165. </reports>
  166. </reportSet>
  167. </reportSets>
  168. </plugin>
  169. </plugins>
  170. </reporting>
  171. <distributionManagement>
  172. <site>
  173. <id>apache.website</id>
  174. <url>${siteRepositoryUrl}</url>
  175. </site>
  176. </distributionManagement>
  177. <profiles>
  178. <!--
  179. This runs a sparse git checkout for the web site content repository that contains only the doc directory.
  180. The profile is activated only, if the checkout directory does not exist.
  181. The executor runs a shell script.
  182. -->
  183. <profile>
  184. <id>site-checkout</id>
  185. <activation>
  186. <file>
  187. <missing>${scmPubCheckoutDirectory}</missing>
  188. </file>
  189. </activation>
  190. <build>
  191. <plugins>
  192. <plugin>
  193. <groupId>org.codehaus.mojo</groupId>
  194. <artifactId>exec-maven-plugin</artifactId>
  195. <version>1.6.0</version>
  196. <inherited>false</inherited>
  197. <executions>
  198. <execution>
  199. <id>prepare-checkout</id>
  200. <phase>pre-site</phase>
  201. <goals>
  202. <goal>exec</goal>
  203. </goals>
  204. <configuration>
  205. <executable>checkoutSite.sh</executable>
  206. <workingDirectory>${project.basedir}</workingDirectory>
  207. <arguments>
  208. <argument>-d</argument>
  209. <argument>${scmPubCheckoutDirectory}</argument>
  210. <argument>-b</argument>
  211. <argument>${scmPublishBranch}</argument>
  212. <argument>${siteRepositoryUrl}</argument>
  213. </arguments>
  214. </configuration>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. </plugins>
  219. </build>
  220. </profile>
  221. </profiles>
  222. </project>