Scarab commit: svn commit: r11168 - branches/20120417_mavenPort/pom.xml
[email protected] Tue, 17 Apr 2012 02:15:29 -0700 (PDT)
| Newsgroups | gmane.comp.java.scarab.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mcoss
Date: 2012-04-17 02:15:29-0700
New Revision: 11168
Modified:
branches/20120417_mavenPort/pom.xml
Log:
ENH - Prepared pom.xml for site build.
Modified: branches/20120417_mavenPort/pom.xml
Url: http://scarab.tigris.org/source/browse/scarab/branches/20120417_mavenPort/pom.xml?view=diff&pathrev=11168&r1=11167&r2=11168
==============================================================================
--- branches/20120417_mavenPort/pom.xml (original)
+++ branches/20120417_mavenPort/pom.xml 2012-04-17 02:15:29-0700
@@ -5,11 +5,11 @@
Head
###########################################################################################-->
-<modelVersion>4.0.0</modelVersion>
+<modelVersion>4.0.0</modelVersion>
<groupId>org.tigris</groupId>
-<artifactId>scarab</artifactId>
-<packaging>war</packaging>
-<name>Scarab Tracker</name>
+<artifactId>scarab</artifactId>
+<packaging>war</packaging>
+<name>Scarab Tracker</name>
<version>1.0b23-mavenPort-dev</version>
<organization>
@@ -319,6 +319,7 @@
<dbFullUrl>${scarab.database.url}</dbFullUrl>
<dbDriver>${scarab.database.jdbc.driver}</dbDriver>
<configurationDirectory>src/conf/conf</configurationDirectory>
+ <xdocDirectory>${basedir}/site/xdocs</xdocDirectory>
</configuration>
<executions>
<execution><id>package</id><phase>validate</phase><goals><goal>generate-custom-properties</goal></goals></execution>
@@ -355,6 +356,92 @@
</executions>
</plugin>
+ <!--
+ Basic configuration for maven site
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ <configuration>
+ <siteDirectory>${basedir}/site</siteDirectory>
+ <moduleExcludes>
+ <xdoc>changes.xml</xdoc>
+ </moduleExcludes>
+ <xdocDirectory>${basedir}/site/xdocs</xdocDirectory>
+ </configuration>
+ </plugin>
+
+ <!--
+ Build of Scarab guides, in html and pdf, from dokbook files.
+ -->
+ <plugin>
+ <groupId>com.agilejava.docbkx</groupId>
+ <artifactId>docbkx-maven-plugin</artifactId>
+ <version>2.0.14</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.docbook</groupId>
+ <artifactId>docbook-xml</artifactId>
+ <version>4.4</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+ <executions>
+ <execution>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>generate-html</goal>
+ <goal>generate-pdf</goal>
+ </goals>
+ </execution>
+ </executions>
+
+ <configuration>
+ <sourceDirectory>${basedir}/www/book</sourceDirectory>
+ </configuration>
+ </plugin>
+
+ <!--
+ Copy guides (an included image folder) to finish site build ready for deploy.
+ -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>site</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/site/docbook</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.build.directory}/docbkx/html</directory>
+ <includes>
+ <include>**/scarab-*.html</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.build.directory}/docbkx/pdf</directory>
+ <includes>
+ <include>**/scarab-*.pdf</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${basedir}/www/book</directory>
+ <excludes>
+ <exclude>**/*.xml</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<!--
Build of Scarab source archives
@@ -369,9 +456,43 @@
</configuration>
</plugin>
- </plugins>
+ </plugins>
</build>
+ <!--######################################################################################
+ Reportings for maven site.
+###########################################################################################-->
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <links>
+ <link>http://commons.apache.org/lang/api</link>
+ <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+ </links>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-changes-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <xmlPath>${basedir}/site/xdocs/changes.xml</xmlPath>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>changes-report</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+
<!--######################################################################################
Dependencies
###########################################################################################-->
------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2949040