Permalink
Browse files

Add an assembly.

  • Loading branch information...
1 parent b28bbb5 commit 829c800892f90afdb59354fda7c40609219221b7 @buckett buckett committed Dec 4, 2009
Showing with 79 additions and 3 deletions.
  1. +44 −0 content-cleanup-assembly/pom.xml
  2. +32 −0 content-cleanup-assembly/src/main/assembly/deploy.xml
  3. +3 −3 pom.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>content-cleanup</artifactId>
+ <groupId>uk.ac.ox.oucs.vle</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <groupId>uk.ac.ox.oucs.vle</groupId>
+ <artifactId>content-cleanup-assembly</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>content-cleanup-assembly</name>
+ <packaging>pom</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>uk.ac.ox.oucs.vle</groupId>
+ <artifactId>content-cleanup-pack</artifactId>
+ <type>sakai-component</type>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/deploy.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id> <!-- this is used for inheritance merges -->
+ <phase>package</phase> <!-- append to the packaging phase. -->
+ <goals>
+ <goal>single</goal> <!-- goals == mojos -->
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<assembly>
+ <id>tomcat-overlay</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>shared/lib/</outputDirectory>
+ <includes>
+ <include>*:jar:*</include>
+ </includes>
+ <unpack>false</unpack>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>webapps/</outputDirectory>
+ <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
+ <includes>
+ <include>*:war:*</include>
+ </includes>
+ <unpack>false</unpack>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory>commponents/${artifact.artifactId}</outputDirectory>
+ <includes>
+ <include>*:sakai-component:*</include>
+ </includes>
+ <unpack>true</unpack>
+ </dependencySet>
+ </dependencySets>
+</assembly>
View
@@ -1,6 +1,5 @@
<?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">
+<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>
<groupId>uk.ac.ox.oucs.vle</groupId>
<artifactId>content-cleanup</artifactId>
@@ -54,6 +53,7 @@
<modules>
<module>content-cleanup-impl</module>
<module>content-cleanup-pack</module>
+ <module>content-cleanup-assembly</module>
</modules>
<build>
<plugins>
@@ -80,4 +80,4 @@
</plugins>
</build>
-</project>
+</project>

0 comments on commit 829c800

Please sign in to comment.