aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-distribution
diff options
context:
space:
mode:
Diffstat (limited to 'ardor3d-distribution')
-rw-r--r--ardor3d-distribution/assembly-all.xml63
-rw-r--r--ardor3d-distribution/assembly-jogl.xml42
-rw-r--r--ardor3d-distribution/assembly-lwjgl.xml62
-rw-r--r--ardor3d-distribution/pom.xml87
4 files changed, 254 insertions, 0 deletions
diff --git a/ardor3d-distribution/assembly-all.xml b/ardor3d-distribution/assembly-all.xml
new file mode 100644
index 0000000..f9e1f26
--- /dev/null
+++ b/ardor3d-distribution/assembly-all.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+
+ <id>all</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <moduleSets>
+ <moduleSet>
+ <useAllReactorProjects>true</useAllReactorProjects>
+
+ <includes>
+ <include>com.ardor3d:ardor3d-animation</include>
+ <include>com.ardor3d:ardor3d-awt</include>
+ <include>com.ardor3d:ardor3d-collada</include>
+ <include>com.ardor3d:ardor3d-core</include>
+ <include>com.ardor3d:ardor3d-effects</include>
+ <include>com.ardor3d:ardor3d-extras</include>
+ <include>com.ardor3d:ardor3d-jogl</include>
+ <include>com.ardor3d:ardor3d-lwjgl</include>
+ <include>com.ardor3d:ardor3d-math</include>
+ <include>com.ardor3d:ardor3d-savable</include>
+ <include>com.ardor3d:ardor3d-swt</include>
+ <include>com.ardor3d:ardor3d-terrain</include>
+ <include>com.ardor3d:ardor3d-ui</include>
+ </includes>
+
+ <binaries>
+ <unpack>false</unpack>
+ <dependencySets>
+ <dependencySet>
+ <excludes>
+ <exclude>*:lwjgl*:*:natives-*</exclude>
+ <exclude>*:jinput*:*:natives-*</exclude>
+ </excludes>
+ </dependencySet>
+ </dependencySets>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/natives</directory>
+ <outputDirectory>natives</outputDirectory>
+ <!-- This is kind of a workaround. Ideally, we would tell the maven-nativedependencies-plugin
+ to *not* unpack the jogl/gluegen native jars. Jogl has its own native library
+ classloader which unpacks the jars. At the moment, there is no other choice
+ if all platforms should be supported, because the filenames of the native
+ libs are overlapping each other in jogl (e.g. for natives-linux-amd64 and
+ natives-linux-i586). -->
+ <excludes>
+ <exclude>*jogl*</exclude>
+ <exclude>*nativewindow*</exclude>
+ <exclude>*newt*</exclude>
+ <exclude>*gluegen*</exclude>
+ <exclude>META-INF/</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
diff --git a/ardor3d-distribution/assembly-jogl.xml b/ardor3d-distribution/assembly-jogl.xml
new file mode 100644
index 0000000..f36104e
--- /dev/null
+++ b/ardor3d-distribution/assembly-jogl.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+
+ <id>jogl</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <moduleSets>
+ <moduleSet>
+
+ <!-- Enable access to all projects in the current multimodule build! -->
+ <useAllReactorProjects>true</useAllReactorProjects>
+
+ <!-- Now, select which projects to include in this module-set. -->
+ <includes>
+ <include>com.ardor3d:ardor3d-animation</include>
+ <include>com.ardor3d:ardor3d-awt</include>
+ <include>com.ardor3d:ardor3d-collada</include>
+ <include>com.ardor3d:ardor3d-core</include>
+ <include>com.ardor3d:ardor3d-effects</include>
+ <include>com.ardor3d:ardor3d-extras</include>
+ <include>com.ardor3d:ardor3d-jogl</include>
+ <include>com.ardor3d:ardor3d-math</include>
+ <include>com.ardor3d:ardor3d-savable</include>
+ <include>com.ardor3d:ardor3d-swt</include>
+ <include>com.ardor3d:ardor3d-terrain</include>
+ <include>com.ardor3d:ardor3d-ui</include>
+ </includes>
+ <binaries>
+ <unpack>false</unpack>
+ <dependencySets>
+ <dependencySet>
+ <unpack>false</unpack>
+ <scope>runtime</scope>
+ </dependencySet>
+ </dependencySets>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
+</assembly>
diff --git a/ardor3d-distribution/assembly-lwjgl.xml b/ardor3d-distribution/assembly-lwjgl.xml
new file mode 100644
index 0000000..642a5ea
--- /dev/null
+++ b/ardor3d-distribution/assembly-lwjgl.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+
+ <id>lwjgl</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <moduleSets>
+ <moduleSet>
+ <useAllReactorProjects>true</useAllReactorProjects>
+
+ <includes>
+ <include>com.ardor3d:ardor3d-animation</include>
+ <include>com.ardor3d:ardor3d-awt</include>
+ <include>com.ardor3d:ardor3d-collada</include>
+ <include>com.ardor3d:ardor3d-core</include>
+ <include>com.ardor3d:ardor3d-effects</include>
+ <include>com.ardor3d:ardor3d-extras</include>
+ <include>com.ardor3d:ardor3d-lwjgl</include>
+ <include>com.ardor3d:ardor3d-math</include>
+ <include>com.ardor3d:ardor3d-savable</include>
+ <include>com.ardor3d:ardor3d-swt</include>
+ <include>com.ardor3d:ardor3d-terrain</include>
+ <include>com.ardor3d:ardor3d-ui</include>
+ </includes>
+
+ <binaries>
+ <unpack>false</unpack>
+ <dependencySets>
+ <dependencySet>
+ <excludes>
+ <exclude>*:lwjgl*:*:natives-*</exclude>
+ <exclude>*:jinput*:*:natives-*</exclude>
+ </excludes>
+ </dependencySet>
+ </dependencySets>
+ </binaries>
+ </moduleSet>
+ </moduleSets>
+
+ <fileSets>
+ <fileSet>
+ <directory>target/natives</directory>
+ <outputDirectory>natives</outputDirectory>
+ <!-- This is kind of a workaround. Ideally, we would tell the maven-nativedependencies-plugin
+ to *not* unpack the jogl/gluegen native jars. Jogl has its own native library
+ classloader which unpacks the jars. At the moment, there is no other choice
+ if all platforms should be supported, because the filenames of the native
+ libs are overlapping each other in jogl (e.g. for natives-linux-amd64 and
+ natives-linux-i586). -->
+ <excludes>
+ <exclude>*jogl*</exclude>
+ <exclude>*nativewindow*</exclude>
+ <exclude>*newt*</exclude>
+ <exclude>*gluegen*</exclude>
+ <exclude>META-INF/</exclude>
+ </excludes>
+ </fileSet>
+ </fileSets>
+</assembly>
diff --git a/ardor3d-distribution/pom.xml b/ardor3d-distribution/pom.xml
new file mode 100644
index 0000000..0c69160
--- /dev/null
+++ b/ardor3d-distribution/pom.xml
@@ -0,0 +1,87 @@
+<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>com.ardor3d</groupId>
+ <artifactId>ardor3d</artifactId>
+ <version>0.9-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>distribution</artifactId>
+ <packaging>pom</packaging>
+ <name>Distribution</name>
+
+ <dependencies>
+ <!-- NOTE: This dependency is only required to sort this project to the
+ end of the line in the multimodule build. -->
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>ardor3d-examples</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+ <!-- TODO adapt when switching to Sonatype OSS
+
+ When switching to Sonatype OSS, the parent pom will use Sonatype OSS repos
+ in its distributionManagement block. As the zips of this module shouldn't be deployed to
+ Sonatype/Central but rather to Ardor3D's own repo, the repos have to be overridden here:
+
+ <distributionManagement>
+ <repository>
+ <id>Ardor3D-releases</id>
+ <name>Ardor3D releases</name>
+ <url>http://ardor3d.com:8081/nexus/content/repositories/releases</url>
+ </repository>
+ <snapshotRepository>
+ <id>Ardor3D-snapshots</id>
+ <name>Ardor3D snapshots</name>
+ <url>http://ardor3d.com:8081/nexus/content/repositories/snapshots</url>
+ </snapshotRepository>
+ </distributionManagement>
+ -->
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>distro-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>assembly-all.xml</descriptor>
+ <descriptor>assembly-jogl.xml</descriptor>
+ <descriptor>assembly-lwjgl.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.googlecode.mavennatives</groupId>
+ <artifactId>maven-nativedependencies-plugin</artifactId>
+ <version>0.0.7</version>
+ <executions>
+ <execution>
+ <id>unpacknatives</id>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-install-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>