[Arakhnę-Dev] [138] Update pom.xml to replace $Name$, $Revision$ and $Date$ macros in api documentation.

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 138
Author:   galland
Date:     2010-04-30 14:42:59 +0200 (Fri, 30 Apr 2010)
Log Message:
-----------
Update pom.xml to replace $Name$, $Revision$ and $Date$ macros in api documentation.

Modified Paths:
--------------
    trunk/pom.xml

Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml	2010-04-30 12:42:09 UTC (rev 137)
+++ trunk/pom.xml	2010-04-30 12:42:59 UTC (rev 138)
@@ -6,11 +6,14 @@
   <packaging>pom</packaging>
   <version>2.1-SNAPSHOT</version>
   <name>Arakhnê Foundation Classes</name>
-  <inceptionYear>2007</inceptionYear>
+  <inceptionYear>2006</inceptionYear>
   <url>http://www.arakhne.org/</url>
   <description>Java library that provides additional tools.</description>
-  
 
+  <properties>
+    <year>2010</year>
+  </properties>  
+
 	<!-- ======================================= -->
 	<!-- ====       Dependencies             === -->
 	<!-- ======================================= -->
@@ -154,6 +157,54 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-deploy-plugin</artifactId>
 			</plugin>
+		       <plugin>
+			   <groupId>com.google.code.maven-replacer-plugin</groupId>
+			   <artifactId>maven-replacer-plugin</artifactId>
+			   <version>1.3</version>
+			   <executions>
+			       <execution>
+				   <phase>site</phase>
+				   <goals>
+				       <goal>replace</goal>
+				   </goals>                   
+			       </execution>
+			   </executions>
+			   <configuration>
+			       <includes>
+				   <include>**/target/site/apidocs/**/*.html</include>
+			       </includes>
+			       <regex>true</regex>
+			       <regexFlags>
+				   <regexFlag>CASE_INSENSITIVE</regexFlag>
+			       </regexFlags>
+			       <replacements>
+				   <replacement>
+				       <token>[$]Name(:[^$]*)?[$]</token>
+				       <value>${pom.name}</value>
+				   </replacement>         
+				   <replacement>
+				       <token>[$]Revision(:[^$]*)?[$]</token>
+				       <value>${project.version}</value>
+				   </replacement>         
+				   <replacement>
+				       <token>[$]Version(:[^$]*)?[$]</token>
+				       <value>${project.version}</value>
+				   </replacement>         
+				   <replacement>
+				       <token>[$]Date(:[^$]*)?[$]</token>
+				       <value>${maven.build.timestamp}</value>
+				   </replacement>         
+				   <replacement>
+				       <token>[$]ArtifactId(:[^$]*)?[$]</token>
+				       <value>${pom.artifactId}</value>
+				   </replacement>         
+				   <replacement>
+				       <token>[$]GroupId(:[^$]*)?[$]</token>
+				       <value>${pom.groupId}</value>
+				   </replacement>         
+			       </replacements>
+			   </configuration>
+		       </plugin>
 		</plugins>
 	</build>
 
@@ -180,6 +231,30 @@
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-javadoc-plugin</artifactId>
+				<configuration>
+					<aggregate>true</aggregate>
+					<show>package</show>
+					<detectLinks>true</detectLinks>
+					<detectJavaApiLink>true</detectJavaApiLink>
+					<links>
+						<link>http://download.java.net/media/java3d/javadoc/1.5.2/</link>
+					</links>
+					<stylesheet>maven</stylesheet>
+					<docfilessubdirs>true</docfilessubdirs>
+					<bottom>&lt;small&gt;Copyright &amp;copy; ${pom.inceptionYear}-${year} Arakhn&amp;ecirc;.org. All rights reserved under LGPL license terms.&lt;/small&gt;</bottom>
+					<tags>
+						<tag>
+							<name>mavengroupid</name>
+							<placement>pt</placement>
+							<head>Maven Group Id:</head>
+						</tag>
+						<tag>
+							<name>mavenartifactid</name>
+							<placement>pt</placement>
+							<head>Maven Artifact Id:</head>
+						</tag>
+					</tags>
+				</configuration>
 			</plugin>
 		</plugins>
 	</reporting>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/