Author: pferraro
Date: 2008-10-28 15:06:50 -0400 (Tue, 28 Oct 2008)
New Revision: 2014
Added:
trunk/mod_cluster/src/assembly/sar.xml
Modified:
trunk/mod_cluster/pom.xml
trunk/mod_cluster/src/assembly/bin.xml
Log:
"mvn package" now builds exploded sar
"mvn -P demo package" now builds binary dist.
Modified: trunk/mod_cluster/pom.xml
===================================================================
--- trunk/mod_cluster/pom.xml 2008-10-28 18:43:06 UTC (rev 2013)
+++ trunk/mod_cluster/pom.xml 2008-10-28 19:06:50 UTC (rev 2014)
@@ -50,16 +50,21 @@
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
- <id>assembly</id>
+ <id>sar</id>
<goals>
- <goal>attached</goal>
+ <goal>directory-inline</goal>
</goals>
<phase>package</phase>
+ <configuration>
+ <finalName>${project.artifactId}.sar</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ <descriptors>
+ <descriptor>src/assembly/sar.xml</descriptor>
+ </descriptors>
+ </configuration>
</execution>
</executions>
- <configuration>
-
<descriptorSourceDirectory>src/assembly</descriptorSourceDirectory>
- </configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
@@ -353,6 +358,25 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>bin</id>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assembly/bin.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
Modified: trunk/mod_cluster/src/assembly/bin.xml
===================================================================
--- trunk/mod_cluster/src/assembly/bin.xml 2008-10-28 18:43:06 UTC (rev 2013)
+++ trunk/mod_cluster/src/assembly/bin.xml 2008-10-28 19:06:50 UTC (rev 2014)
@@ -14,15 +14,16 @@
</includes>
</fileSet>
<fileSet>
- <directory>target</directory>
+ <directory>target/mod-cluster.sar</directory>
<outputDirectory>mod-cluster.sar</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>target/demo</directory>
+ <outputDirectory>demo</outputDirectory>
<includes>
- <include>${project.build.finalName}.jar</include>
+ <include>client/mod-cluster-demo.jar</include>
+ <include>server/demo.war</include>
</includes>
</fileSet>
- <fileSet>
- <directory>src/main/resources</directory>
- <outputDirectory>mod-cluster.sar/META-INF</outputDirectory>
- </fileSet>
</fileSets>
</assembly>
\ No newline at end of file
Added: trunk/mod_cluster/src/assembly/sar.xml
===================================================================
--- trunk/mod_cluster/src/assembly/sar.xml (rev 0)
+++ trunk/mod_cluster/src/assembly/sar.xml 2008-10-28 19:06:50 UTC (rev 2014)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly
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/xsd/assembly-1.0.0.xsd">
+ <id>sar</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>target</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>${project.build.finalName}.jar</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/resources</directory>
+ <outputDirectory>META-INF</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file