summaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-10-06 16:39:39 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-10-06 16:39:39 +0200
commit7112eedbb508c22433b07578a1071b84e22b2a81 (patch)
tree68c962fac9ca7eff87642fd65013543fb66895da /pom.xml
parentc48891910c6ca2ca7d234a3859899f7c60bbd909 (diff)
Added maven appassembler to produce a distribution with server, gui and
usercode launchers.
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml73
1 files changed, 72 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 36faa96..e3c5a3a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cristal</groupId>
<artifactId>cristal-dev</artifactId>
- <version>0.7-SNAPSHOT</version>
+ <version>3.0-SNAPSHOT</version>
<name>Cristal Development Module</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -39,6 +39,77 @@
<target>1.6</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>appassembler-maven-plugin</artifactId>
+ <version>1.8</version>
+ <configuration>
+ <repositoryLayout>flat</repositoryLayout>
+ <configurationDirectory>conf</configurationDirectory>
+ <copyConfigurationDirectory>true</copyConfigurationDirectory>
+ <useTimestampInSnapshotFileName>false</useTimestampInSnapshotFileName>
+ <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
+ <assembleDirectory>${project.build.directory}/dist/client</assembleDirectory>
+ <showConsoleWindow>false</showConsoleWindow>
+ <repositoryName>lib</repositoryName>
+ <defaultJvmSettings>
+ <maxMemorySize>1024M</maxMemorySize>
+ </defaultJvmSettings>
+ <programs>
+ <program>
+ <mainClass>com.c2kernel.process.StandardServer</mainClass>
+ <id>cristal-server</id>
+ <commandLineArguments>
+ <commandLineArgument>-logLevel</commandLineArgument>
+ <commandLineArgument>0</commandLineArgument>
+ <commandLineArgument>-logFile</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/server.log</commandLineArgument>
+ <commandLineArgument>-config</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/conf/server.conf</commandLineArgument>
+ <commandLineArgument>-connect</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/conf/local.clc</commandLineArgument>
+ </commandLineArguments>
+ </program>
+ <program>
+ <mainClass>com.c2kernel.gui.Main</mainClass>
+ <id>cristal-gui</id>
+ <commandLineArguments>
+ <commandLineArgument>-logLevel</commandLineArgument>
+ <commandLineArgument>0</commandLineArgument>
+ <commandLineArgument>-logFile</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/gui.log</commandLineArgument>
+ <commandLineArgument>-config</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/conf/client.conf</commandLineArgument>
+ <commandLineArgument>-connect</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/conf/local.clc</commandLineArgument>
+ </commandLineArguments>
+ </program>
+ <program>
+ <mainClass>com.c2kernel.process.UserCodeProcess</mainClass>
+ <id>cristal-usercode</id>
+ <commandLineArguments>
+ <commandLineArgument>-logLevel</commandLineArgument>
+ <commandLineArgument>0</commandLineArgument>
+ <commandLineArgument>-logFile</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/usercode.log</commandLineArgument>
+ <commandLineArgument>-config</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/conf/client.conf</commandLineArgument>
+ <commandLineArgument>-connect</commandLineArgument>
+ <commandLineArgument>@BASEDIR@/conf/local.clc</commandLineArgument>
+ </commandLineArguments>
+ </program>
+ </programs>
+ </configuration>
+ <executions>
+ <execution>
+ <id>generate-distribution</id>
+ <phase>package</phase>
+ <goals>
+ <goal>assemble</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<issueManagement>