2007-01-19 01:24:25 -05:00
|
|
|
<!--
|
|
|
|
~ 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.
|
|
|
|
-->
|
|
|
|
|
2007-06-01 13:10:13 -04:00
|
|
|
<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">
|
2007-01-19 01:07:25 -05:00
|
|
|
<parent>
|
2008-03-28 22:01:11 -04:00
|
|
|
<groupId>org.apache.archiva</groupId>
|
2007-11-11 08:14:20 -05:00
|
|
|
<artifactId>archiva</artifactId>
|
2010-01-18 06:20:28 -05:00
|
|
|
<version>1.4-SNAPSHOT</version>
|
2007-01-19 01:07:25 -05:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2007-11-21 03:26:57 -05:00
|
|
|
<artifactId>archiva-docs</artifactId>
|
2007-01-19 01:07:25 -05:00
|
|
|
<packaging>pom</packaging>
|
2011-09-01 13:09:08 -04:00
|
|
|
<name>Archiva :: Documentation</name>
|
2008-05-10 17:14:19 -04:00
|
|
|
<url>http://archiva.apache.org/docs/${project.version}/</url>
|
2007-11-18 21:27:56 -05:00
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2007-11-21 05:45:25 -05:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2008-07-07 06:59:54 -04:00
|
|
|
<id>site</id>
|
2007-11-21 05:45:25 -05:00
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>site</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2011-05-17 02:49:35 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
|
|
<artifactId>wagon-ssh</artifactId>
|
2011-09-22 18:20:12 -04:00
|
|
|
<version>1.0</version>
|
2011-05-17 02:49:35 -04:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2007-11-21 05:45:25 -05:00
|
|
|
</plugin>
|
2007-11-18 21:27:56 -05:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<descriptor>src/site/assembly/docs.xml</descriptor>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
2007-11-21 05:45:25 -05:00
|
|
|
<goal>single</goal>
|
2007-11-18 21:27:56 -05:00
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
<finalName>apache-archiva-${project.version}</finalName>
|
|
|
|
</build>
|
2007-01-19 01:07:25 -05:00
|
|
|
|
|
|
|
<reporting>
|
|
|
|
<excludeDefaults>true</excludeDefaults>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
2007-11-14 07:02:57 -05:00
|
|
|
<version>2.0.1</version>
|
2007-01-19 01:07:25 -05:00
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<reports>
|
|
|
|
<report>license</report>
|
|
|
|
<report>project-team</report>
|
|
|
|
</reports>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
|
|
|
|
<distributionManagement>
|
|
|
|
<site>
|
|
|
|
<id>apache.website</id>
|
2007-11-18 21:27:56 -05:00
|
|
|
<url>${siteBaseDeployment}/docs/${project.version}</url>
|
2007-01-19 01:07:25 -05:00
|
|
|
</site>
|
|
|
|
</distributionManagement>
|
2008-03-29 20:13:12 -04:00
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>release</id>
|
|
|
|
<!-- TODO: this deploys directly - what about staging? -->
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2008-07-07 06:59:54 -04:00
|
|
|
<id>deploy</id>
|
2008-03-29 20:13:12 -04:00
|
|
|
<phase>deploy</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>deploy</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2008-10-07 07:40:56 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-beanshell</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<evaluateBeanshell>
|
|
|
|
<message>Site descriptor needs to be updated for the current release version</message>
|
|
|
|
<condition>
|
|
|
|
<![CDATA[
|
|
|
|
javax.xml.xpath.XPath xpath = javax.xml.xpath.XPathFactory.newInstance().newXPath();
|
2008-10-07 08:43:27 -04:00
|
|
|
org.xml.sax.InputSource is = new org.xml.sax.InputSource( new java.io.FileInputStream( "${basedir}/src/site/site.xml" ) );
|
2009-07-28 03:42:50 -04:00
|
|
|
xpath.evaluate( "//project/body/breadcrumbs/item[@name='${project.version}']/@href", is ).equals( "/index.html" )
|
2008-10-07 07:40:56 -04:00
|
|
|
]]>
|
|
|
|
</condition>
|
|
|
|
</evaluateBeanshell>
|
|
|
|
<evaluateBeanshell>
|
|
|
|
<message>Release notes need to be updated for the current release version</message>
|
|
|
|
<condition>
|
|
|
|
<![CDATA[
|
2008-10-07 08:43:27 -04:00
|
|
|
org.codehaus.plexus.util.FileUtils.fileRead( "${basedir}/src/site/apt/release-notes.apt" ).indexOf( "Release Notes for Archiva ${project.version}" ) >= 0
|
2008-10-07 07:40:56 -04:00
|
|
|
]]>
|
|
|
|
</condition>
|
|
|
|
</evaluateBeanshell>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2008-03-29 20:13:12 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2007-01-19 01:07:25 -05:00
|
|
|
</project>
|