Author: Alex.Kolonitsky
Date: 2009-05-12 14:02:07 -0400 (Tue, 12 May 2009)
New Revision: 14143
Added:
trunk/examples/photoalbum/assembly/
trunk/examples/photoalbum/assembly/ear.xml
trunk/examples/photoalbum/assembly/photoalbum.xml
trunk/examples/photoalbum/assembly/pom.xml
Log:
add assembly
Added: trunk/examples/photoalbum/assembly/ear.xml
===================================================================
--- trunk/examples/photoalbum/assembly/ear.xml (rev 0)
+++ trunk/examples/photoalbum/assembly/ear.xml 2009-05-12 18:02:07 UTC (rev 14143)
@@ -0,0 +1,18 @@
+<assembly>
+ <id>photoalbum-ear</id>
+ <formats>
+ <format>zip</format>
+ <format>tar.gz</format>
+ </formats>
+ <files>
+ <file>
+ <source>/../source/ear/target/photoalbum-ear-1.0-SNAPSHOT.ear</source>
+ </file>
+ <file>
+ <source>/../../JBossORG-EULA.txt</source>
+ </file>
+ <file>
+ <source>/../../lgpl.txt</source>
+ </file>
+ </files>
+</assembly>
\ No newline at end of file
Added: trunk/examples/photoalbum/assembly/photoalbum.xml
===================================================================
--- trunk/examples/photoalbum/assembly/photoalbum.xml (rev 0)
+++ trunk/examples/photoalbum/assembly/photoalbum.xml 2009-05-12 18:02:07 UTC (rev 14143)
@@ -0,0 +1,78 @@
+<assembly>
+ <id>photoalbum</id>
+ <formats>
+ <format>zip</format>
+ <format>tar.gz</format>
+ </formats>
+
+ <files>
+ <file>
+ <source>/../source/ear/target/photoalbum-ear-1.0-SNAPSHOT.ear</source>
+ </file>
+ <file>
+ <source>/../../JBossORG-EULA.txt</source>
+ </file>
+ <file>
+ <source>/../../lgpl.txt</source>
+ </file>
+ </files>
+
+ <fileSets>
+ <fileSet>
+ <directory>/../doc</directory>
+ <outputDirectory>/docs</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>/../source</directory>
+ <outputDirectory>/src</outputDirectory>
+ <includes>
+ <include>*build.xml</include>
+ <include>*build.properties</include>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>/../source/ear</directory>
+ <outputDirectory>/src/ear</outputDirectory>
+ <includes>
+ <include>src/**</include>
+ <include>*build.xml</include>
+ <include>*build.properties</include>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>/../source/ejb</directory>
+ <outputDirectory>/src/ejb</outputDirectory>
+ <includes>
+ <include>src/**</include>
+ <include>sql/**</include>
+ <include>*build.xml</include>
+ <include>*build.properties</include>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>/../source/web</directory>
+ <outputDirectory>/src/web</outputDirectory>
+ <includes>
+ <include>src/**</include>
+ <include>environment/**</include>
+ <include>Upload/short/**</include>
+ <include>*build.xml</include>
+ <include>*build.properties</include>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>/../tests</directory>
+ <outputDirectory>/src/tests</outputDirectory>
+ <includes>
+ <include>src/**</include>
+ <include>*build.xml</include>
+ <include>*build.properties</include>
+ <include>pom.xml</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
Added: trunk/examples/photoalbum/assembly/pom.xml
===================================================================
--- trunk/examples/photoalbum/assembly/pom.xml (rev 0)
+++ trunk/examples/photoalbum/assembly/pom.xml 2009-05-12 18:02:07 UTC (rev 14143)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+ <parent>
+ <groupId>org.richfaces</groupId>
+ <artifactId>photoalbum</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>${projectName}-assembler</artifactId>
+ <name>Assembler module</name>
+ <packaging>pom</packaging>
+
+ <build>
+ <finalName>${projectName}-ear-1.0-SNAPSHOT</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>fetch-feature</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>livedemo</id>
+ </profile>
+
+ <profile>
+ <id>release</id>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <outputDirectory>../dist</outputDirectory>
+ <descriptors>
+ <descriptor>photoalbum.xml</descriptor>
+ <descriptor>ear.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>install</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-plugin</artifactId>
+ <version>1.2</version>
+ <configuration>
+ <connectionType>developerConnection</connectionType>
+ </configuration>
+ <executions>
+ <execution>
+ <id>fetch-feature</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>export</goal>
+ </goals>
+
+ <configuration>
+ <connectionType>developerConnection</connectionType>
+ <
developerConnectionUrl>scm:svn:https://svn.jboss.org/repos/richfaces/b...
+ <skipExportIfExists>true</skipExportIfExists>
+ <exportDirectory>source/web/Upload/full</exportDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>fetch-feature</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+
+</project>