[richfaces-svn-commits] JBoss Rich Faces SVN: r14159 - in trunk/examples/photoalbum: assembly and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed May 13 10:31:57 EDT 2009


Author: nbelaevski
Date: 2009-05-13 10:31:57 -0400 (Wed, 13 May 2009)
New Revision: 14159

Modified:
   trunk/examples/photoalbum/assembly/photoalbum.xml
   trunk/examples/photoalbum/assembly/pom.xml
   trunk/examples/photoalbum/pom.xml
   trunk/examples/photoalbum/source/pom.xml
Log:
Javadocs generation added

Modified: trunk/examples/photoalbum/assembly/photoalbum.xml
===================================================================
--- trunk/examples/photoalbum/assembly/photoalbum.xml	2009-05-13 14:27:51 UTC (rev 14158)
+++ trunk/examples/photoalbum/assembly/photoalbum.xml	2009-05-13 14:31:57 UTC (rev 14159)
@@ -23,6 +23,10 @@
 	  </excludes>
     </fileSet>
     <fileSet>
+	  <directory>../target/javadocs</directory>
+      <outputDirectory>photoalbum/docs</outputDirectory>
+    </fileSet>
+    <fileSet>
 	  <directory>../source</directory>
       <outputDirectory>photoalbum/source</outputDirectory>
 	  <includes>

Modified: trunk/examples/photoalbum/assembly/pom.xml
===================================================================
--- trunk/examples/photoalbum/assembly/pom.xml	2009-05-13 14:27:51 UTC (rev 14158)
+++ trunk/examples/photoalbum/assembly/pom.xml	2009-05-13 14:31:57 UTC (rev 14159)
@@ -25,40 +25,6 @@
 		<finalName>richfaces-examples-${project.version}</finalName>
 		<plugins>
 			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-dependency-plugin</artifactId>
-				<executions>
-					<execution>
-						<id>unpack</id>
-						<phase>generate-resources</phase>
-						<goals>
-							<goal>unpack</goal>
-						</goals>
-						<configuration>
-							<artifactItems>
-								<artifactItem>
-									<groupId>org.richfaces.docs.realworld</groupId>
-									<artifactId>en</artifactId>
-									<version>3.3.1-SNAPSHOT</version>
-									<type>jar</type>
-									<!--classifier>pdf</classifier-->
-								</artifactItem>
-							</artifactItems>
-							<outputDirectory>
-								${project.build.directory}/docs
-							</outputDirectory>
-							<overWriteReleases>
-								false
-							</overWriteReleases>
-							<overWriteSnapshots>
-								true
-							</overWriteSnapshots>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-
-			<plugin>
 				<artifactId>maven-assembly-plugin</artifactId>
 				<configuration>
 					<outputDirectory>${project.build.directory}/dist</outputDirectory>
@@ -79,4 +45,47 @@
 		</plugins>
 	</build>
 
+	<profiles>
+		<profile>
+			<id>docs</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-dependency-plugin</artifactId>
+						<executions>
+							<execution>
+								<id>unpack</id>
+								<phase>generate-resources</phase>
+								<goals>
+									<goal>unpack</goal>
+								</goals>
+								<configuration>
+									<artifactItems>
+										<artifactItem>
+											<groupId>org.richfaces.docs.realworld</groupId>
+											<artifactId>en</artifactId>
+											<version>3.3.1-SNAPSHOT</version>
+											<type>jar</type>
+											<!--classifier>pdf</classifier-->
+										</artifactItem>
+									</artifactItems>
+									<outputDirectory>
+										${project.build.directory}/docs
+									</outputDirectory>
+									<overWriteReleases>
+										false
+									</overWriteReleases>
+									<overWriteSnapshots>
+										true
+									</overWriteSnapshots>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
+	
 </project>

Modified: trunk/examples/photoalbum/pom.xml
===================================================================
--- trunk/examples/photoalbum/pom.xml	2009-05-13 14:27:51 UTC (rev 14158)
+++ trunk/examples/photoalbum/pom.xml	2009-05-13 14:31:57 UTC (rev 14159)
@@ -10,4 +10,37 @@
         <module>source</module>
     </modules>
     
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-javadoc-plugin</artifactId>
+				<version>2.2</version>
+				<configuration>
+					<javadocVersion>1.5</javadocVersion>
+					<reportOutputDirectory>${project.build.directory}/javadocs</reportOutputDirectory>
+					<aggregate>true</aggregate>
+				</configuration>
+				<executions>
+					<execution>
+						<id>generate-javadoc</id>
+						<phase>generate-sources</phase>
+						<goals>
+							<goal>javadoc</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+
+	<profiles>
+		<profile>
+			<id>release</id>
+			<modules>
+				<module>assembly</module>
+			</modules>
+		</profile>
+	</profiles>
+	
 </project>
\ No newline at end of file

Modified: trunk/examples/photoalbum/source/pom.xml
===================================================================
--- trunk/examples/photoalbum/source/pom.xml	2009-05-13 14:27:51 UTC (rev 14158)
+++ trunk/examples/photoalbum/source/pom.xml	2009-05-13 14:31:57 UTC (rev 14159)
@@ -77,7 +77,7 @@
 			</plugins>
 		</pluginManagement>
 	</build>
-
+	
 	<profiles>
 		<profile>
 			<id>livedemo</id>




More information about the richfaces-svn-commits mailing list