source: trunk/projects/slim-plugin/assembly-descriptor.xml @ 7690

Revision 7690, 1.7 KB checked in by aivar, 9 years ago (diff)

Added default profile to build default jar and "with-dependencies" profile to build jar with dependency jars and shared libraries.

Line 
1<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
3  <id>with-dependencies</id>
4  <formats>
5    <format>jar</format>
6  </formats>
7  <includeBaseDirectory>false</includeBaseDirectory>
8 
9  <fileSets>
10    <fileSet>
11      <directory>${project.build.directory}/nar/lib/x86_64-MacOSX-gpp/shared</directory>
12      <outputDirectory>META-INF/lib/x86_64-MacOSX-gpp</outputDirectory>
13      <!-- jna style: outputDirectory>com/sun/jna/darwin</outputDirectory -->
14      <includes>
15        <include>*.dylib</include>
16      </includes>
17    </fileSet>
18    <fileSet>
19      <directory>${project.build.directory}/nar/lib/x86-Windows-msvc/shared</directory>
20      <outputDirectory>META-INF/lib/x86-Windows-msvc</outputDirectory>
21      <includes>
22        <include>*.dll</include>
23      </includes>
24    </fileSet>
25    <fileSet>
26      <directory>${project.build.directory}/nar/lib/i386-Linux-g++/shared</directory>
27      <outputDirectory>META-INF/lib/i386-Linux-g++</outputDirectory>
28      <includes>
29        <include>*.so</include>
30      </includes>
31    </fileSet>
32  </fileSets>
33  <dependencySets>
34    <dependencySet>
35      <outputDirectory>/</outputDirectory>
36      <useProjectArtifact>true</useProjectArtifact>
37      <unpack>true</unpack>
38      <scope>runtime</scope>
39      <excludes>
40        <exclude>*ij*</exclude>
41        <!-- nar dependencies are only for maven-nar-plugin, not maven-assembly-plugin -->
42        <exclude>*nar</exclude>
43      </excludes>
44    </dependencySet>
45  </dependencySets>
46  <componentDescriptors/>
47</assembly>
Note: See TracBrowser for help on using the repository browser.