Skip to content
Permalink
Browse files

Fixed installation to not use mega-jars.

git-svn-id: https://open-delta.googlecode.com/svn/trunk@429 dd429c29-c832-59a0-e864-46e68368aa0b
  • Loading branch information
chris.flemming.ala@gmail.com
chris.flemming.ala@gmail.com committed Apr 7, 2011
1 parent 37d267d commit c03f50cdb0b9715d0cee46ebbc0fdcf5d164ca50
@@ -12,7 +12,6 @@
<url>http://code.google.com/p/open-delta/</url>
</scm>
<build>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -21,6 +20,7 @@
<archive>
<manifest>
<mainClass>au.org.ala.delta.confor.CONFOR</mainClass>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<Implementation-Version>${project.version} (${buildNumber})</Implementation-Version>
@@ -32,30 +32,43 @@
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<archive>
<manifest>
<mainClass>au.org.ala.delta.confor.CONFOR</mainClass>
</manifest>
<manifestEntries>
<Implementation-Version>${project.version} (${buildNumber})</Implementation-Version>
</manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<classifier>with-dependencies</classifier>
<finalName>${project.build.finalName}-with-dependencies</finalName>

</configuration>
<executions>
<execution>
<id>dependency-jars</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>../delta-dependency-jar-dir-assembly.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<finalName>dependencies</finalName>
</configuration>
</execution>
<execution>
<id>with-dependencies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>au.org.ala.delta.confor.CONFOR</mainClass>
</manifest>
<manifestEntries>
<Implementation-Version>${project.version} (${buildNumber})</Implementation-Version>
</manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<classifier>with-dependencies</classifier>
<appendAssemblyId>false</appendAssemblyId>
<finalName>${project.build.finalName}-with-dependencies</finalName>
</configuration>
</execution>
</executions>
</plugin>
@@ -103,7 +116,7 @@
</binFileExtensions>
<repositoryLayout>flat</repositoryLayout>
<repositoryName>lib</repositoryName>
<generateRepository>true</generateRepository>
<generateRepository>false</generateRepository>
<showConsoleWindow>true</showConsoleWindow>
</configuration>
<executions>
@@ -131,7 +144,7 @@
<dontWrapJar>true</dontWrapJar>
<headerType>console</headerType>
<outfile>target/CONFOR.exe</outfile>
<jar>lib/${project.build.finalName}-with-dependencies.jar</jar>
<jar>lib/${project.build.finalName}.jar</jar>
<errTitle>Error</errTitle>
<icon>installer/resources/Delta_CONFOR.ico</icon>
<jre>
@@ -149,7 +162,7 @@
<dontWrapJar>true</dontWrapJar>
<headerType>console</headerType>
<outfile>target/CONFOR-NOJRE.exe</outfile>
<jar>lib/${project.build.finalName}-with-dependencies.jar</jar>
<jar>lib/${project.build.finalName}.jar</jar>
<errTitle>Error</errTitle>
<icon>installer/resources/Delta_CONFOR.ico</icon>
<jre>
@@ -0,0 +1,20 @@
<!-- This assembly plugin descriptor is used by the executable sub projects
e.g. Intkey, editor to output all of their dependent jars to a directory.
These jars are then later used in building the installer file. -->
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>dependencies</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<unpack>false</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>

This file was deleted.

@@ -14,7 +14,6 @@
</repository>
</repositories>


<scm>
<connection>scm:svn:http://open-delta.googlecode.com/svn/trunk/</connection>
<developerConnection>scm:svn:https://open-delta.googlecode.com/svn/trunk/</developerConnection>
@@ -35,45 +34,58 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>au.org.ala.delta.editor.DeltaEditor</mainClass>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<Implementation-Version>${project.version} (${buildNumber})</Implementation-Version>
</manifestEntries>
</archive>
</configuration>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<archive>
<manifest>
<mainClass>au.org.ala.delta.editor.DeltaEditor</mainClass>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<Implementation-Version>${project.version} (${buildNumber})</Implementation-Version>
</manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<classifier>with-dependencies</classifier>
<finalName>${project.build.finalName}-with-dependencies</finalName>

</configuration>
</plugin>

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<executions>
<execution>
<id>dependency-jars</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>../delta-dependency-jar-dir-assembly.xml</descriptor>
</descriptors>
<finalName>dependencies</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
<execution>
<id>with-dependencies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>au.org.ala.delta.editor.DeltaEditor</mainClass>
</manifest>
<manifestEntries>
<Implementation-Version>${project.version} (${buildNumber})</Implementation-Version>
</manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<classifier>with-dependencies</classifier>
<finalName>${project.build.finalName}-with-dependencies</finalName>
</configuration>
</execution>
</executions>
</plugin>
@@ -149,7 +161,7 @@
</binFileExtensions>
<repositoryLayout>flat</repositoryLayout>
<repositoryName>lib</repositoryName>
<generateRepository>true</generateRepository>
<generateRepository>false</generateRepository>
<showConsoleWindow>false</showConsoleWindow>
</configuration>
<executions>
@@ -195,7 +207,7 @@
<dontWrapJar>true</dontWrapJar>
<headerType>gui</headerType>
<outfile>target/DeltaEditor-NOJRE.exe</outfile>
<jar>lib\${project.build.finalName}-with-dependencies.jar</jar>
<jar>lib\${project.build.finalName}.jar</jar>
<errTitle>Error</errTitle>
<icon>installer\resources\delta_editor.ico</icon>
<jre>
@@ -223,7 +235,7 @@
<version>${project.version}</version>
</dependency>
<dependency>

<groupId>au.org.ala.delta</groupId>
<artifactId>delta-ui-common</artifactId>
<version>${project.version}</version>
@@ -0,0 +1,66 @@
<!-- This assembly plugin descriptor is used to output all jars that need to
go into the installer - both jars of delta modules and their dependencies - into
a single directory. This simplifies the creation of the installer. -->
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>jardir</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.basedir}/delta-editor/target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
<excludes>
<exclude>*with-dependencies*.jar</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/delta-editor/target/dependencies</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/intkey/target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
<excludes>
<exclude>*with-dependencies*.jar</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/intkey/target/dependencies</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/confor/target</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
<excludes>
<exclude>*with-dependencies*.jar</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/confor/target/dependencies</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
</fileSets>
</assembly>

0 comments on commit c03f50c

Please sign in to comment.
You can’t perform that action at this time.