Author: jfrederic.clere(a)jboss.com
Date: 2011-12-14 07:33:54 -0500 (Wed, 14 Dec 2011)
New Revision: 2866
Added:
trunk/build/unix/util/jbossweb/src/assembly/
trunk/build/unix/util/jbossweb/src/assembly/jar.xml
Modified:
trunk/build/unix/util/jbossweb/pom.xml
Log:
Create a native package for AS7 (only most used platforms).
Modified: trunk/build/unix/util/jbossweb/pom.xml
===================================================================
--- trunk/build/unix/util/jbossweb/pom.xml 2011-12-12 12:30:13 UTC (rev 2865)
+++ trunk/build/unix/util/jbossweb/pom.xml 2011-12-14 12:33:54 UTC (rev 2866)
@@ -57,7 +57,30 @@
<enableAssertions>false</enableAssertions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2.2</version>
+ <executions>
+ <execution>
+ <id>jar</id>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <finalName>${project.artifactId}.jar</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ <descriptors>
+ <descriptor>src/assembly/jar.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
+
<resources>
<resource>
<directory>src/main/resources</directory>
@@ -73,6 +96,7 @@
</includes>
</resource>
</resources>
+
</build>
</project>
Added: trunk/build/unix/util/jbossweb/src/assembly/jar.xml
===================================================================
--- trunk/build/unix/util/jbossweb/src/assembly/jar.xml (rev 0)
+++ trunk/build/unix/util/jbossweb/src/assembly/jar.xml 2011-12-14 12:33:54 UTC (rev
2866)
@@ -0,0 +1,75 @@
+<?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>jar</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <!-- macosx intel 64 bits -->
+ <fileSet>
+ <directory>src/main/resources/bin/META-INF/lib/macosx/x64</directory>
+ <includes>
+ <include>libapr-1.dylib</include>
+ <include>libcrypto.dylib</include>
+ <include>libssl.dylib</include>
+ <include>libtcnative-1.dylib</include>
+ </includes>
+ <outputDirectory>lib/macosx-x86_64</outputDirectory>
+ </fileSet>
+
+ <!-- macosx intel 32 bits -->
+ <fileSet>
+ <directory>src/main/resources/bin/META-INF/lib/macosx/i386</directory>
+ <includes>
+ <include>libapr-1.dylib</include>
+ <include>libcrypto.dylib</include>
+ <include>libssl.dylib</include>
+ <include>libtcnative-1.dylib</include>
+ </includes>
+ <outputDirectory>lib/macosx-i686</outputDirectory>
+ </fileSet>
+
+ <!-- linux intel 32 bits -->
+ <fileSet>
+ <directory>src/main/resources/bin/META-INF/lib/linux2/x86</directory>
+ <includes>
+ <include>libapr-1.so</include>
+ <include>libcrypto.so</include>
+ <include>libssl.so</include>
+ <include>libtcnative-1.so</include>
+ </includes>
+ <outputDirectory>lib/linux-i686</outputDirectory>
+ </fileSet>
+
+ <!-- linux intel 64 bits -->
+ <fileSet>
+ <directory>src/main/resources/bin/META-INF/lib/linux2/x64</directory>
+ <includes>
+ <include>libapr-1.so</include>
+ <include>libcrypto.so</include>
+ <include>libssl.so</include>
+ <include>libtcnative-1.so</include>
+ </includes>
+ <outputDirectory>lib/linux-x86_64</outputDirectory>
+ </fileSet>
+
+ <!-- win32 -->
+ <fileSet>
+ <directory>src/main/resources/bin/META-INF/lib/windows/x86</directory>
+ <includes>
+ <include>tcnative-1.dll</include>
+ </includes>
+ <outputDirectory>lib/win-i686</outputDirectory>
+ </fileSet>
+
+ <!-- win64 -->
+ <fileSet>
+ <directory>src/main/resources/bin/META-INF/lib/windows/x64</directory>
+ <includes>
+ <include>tcnative-1.dll</include>
+ </includes>
+ <outputDirectory>lib/win-x86_64</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>