blob: b4bdfe3a320d7e4487eb7f6e021ad5bc5e18115b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components-site</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>Apache Archiva Redback Components Site</name>
<parent>
<groupId>org.apache.archiva.redback.components</groupId>
<artifactId>redback-components</artifactId>
<version>2.5-SNAPSHOT</version>
</parent>
<description>Utilities component used by Archiva.</description>
<url>${webUrl}/site</url>
<properties>
<scmPubCheckoutDirectory>${basedir}/.site-content</scmPubCheckoutDirectory>
<!-- The git repository, where the site content is placed -->
<siteRepositoryUrl>scm:git:https://gitbox.apache.org/repos/asf/archiva-web-content-INVALID.git</siteRepositoryUrl>
<site.staging.base>${project.basedir}</site.staging.base>
</properties>
<distributionManagement>
<site>
<id>apache.website</id>
<url>${siteRepositoryUrl}</url>
</site>
</distributionManagement>
<modules>
<module>../expression-evaluator</module>
<module>../spring-cache</module>
<module>../spring-quartz</module>
<module>../spring-registry</module>
<module>../spring-taskqueue</module>
<module>../spring-apacheds</module>
<module>../spring-utils</module>
<module>../redback-features</module>
<module>../modello-plugins</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<checkinComment>Apache Redback Components docs for version ${project.version}</checkinComment>
<skipDeletedFiles>true</skipDeletedFiles>
<content>${project.build.directory}/staging</content>
<tryUpdate>true</tryUpdate>
<!--
<ignorePathsToDelete>
<path>%regex[^(?!docs/).*$]</path>
</ignorePathsToDelete>
-->
</configuration>
<executions>
<execution>
<id>scm-publish</id>
<phase>site-deploy</phase>
<goals>
<goal>publish-scm</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<skipDeploy>true</skipDeploy>
<stagingDirectory>${site.staging.base}/target/staging/redback/components/</stagingDirectory>
</configuration>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>archiva.snapshots</id>
<name>Archiva VM Snapshots Repository</name>
<url>https://archiva-repository.apache.org/archiva/repository/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports-plugin.version}</version>
</plugin>
</plugins>
</reporting>
<profiles>
<!--
This runs a sparse git checkout for the web site content repository that contains only the doc directory.
The profile is activated only, if the checkout directory does not exist.
The executor runs a shell script.
-->
<profile>
<id>site-checkout</id>
<activation>
<file>
<missing>${scmPubCheckoutDirectory}</missing>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<inherited>false</inherited>
<executions>
<execution>
<id>prepare-checkout</id>
<phase>pre-site</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>checkoutSite.sh</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>-d</argument>
<argument>${scmPubCheckoutDirectory}</argument>
<argument>${siteRepositoryUrl}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>