<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>
<groupId>org.mactor</groupId>
<artifactId>mactor-rpm</artifactId>
<version>2.1.2-SNAPSHOT</version>
<packaging>rpm</packaging>
<name>MActor RPM</name>
<scm>
<connection>scm:svn:https://mactor.svn.sourceforge.net/svnroot/mactor/mactor-rpm/trunk</connection>
<developerConnection>scm:svn:https://mactor.svn.sourceforge.net/svnroot/mactor/mactor-rpm/trunk</developerConnection>
</scm>
<licenses>
<license>
<name>GNU GENERAL PUBLIC LICENSE</name>
<url>http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</url>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mactor-core</artifactId>
<version>${mactorVersion}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mactor-brokers</artifactId>
<version>${mactorVersion}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mactor-ui</artifactId>
<version>${mactorVersion}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mactor-extensions</artifactId>
<version>${mactorVersion}</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.3.0</version>
</dependency>
<dependency>
<groupId>com.ibm</groupId>
<artifactId>com.ibm.mq</artifactId>
<version>5.3.06</version>
</dependency>
<dependency>
<groupId>tibco</groupId>
<artifactId>tibrvj</artifactId>
<version>1.0</version> <!-- Replace with client jar for your own TIBCO instance at runtime -->
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>unix-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<configuration>
<repositoryLayout>flat</repositoryLayout>
<includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
<platforms>
<!--<platform>windows</platform>-->
<platform>unix</platform>
</platforms>
<programs>
<program>
<mainClass>org.mactor.ui.cmd.MActorCmd</mainClass>
<name>MActorCmd</name>
</program>
<program>
<mainClass>org.mactor.ui.gui.MActorGui</mainClass>
<name>MActorGui</name>
</program>
</programs>
</configuration>
<executions>
<execution>
<id>generateStartScriptAndLibs</id>
<phase>generate-resources</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>unix-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<contact>Erik Drolshammer</contact>
<contactEmail>someEmail</contactEmail>
<revision>${rpm.revision}</revision>
<defaults>
<fileAttributes>
<user>${rpm.username}</user>
<group>${rpm.groupname}</group>
<mode>0664</mode>
</fileAttributes>
<directoryAttributes>
<user>${rpm.username}</user>
<group>${rpm.groupname}</group>
<mode>0775</mode>
</directoryAttributes>
</defaults>
<rpm>
<softwareGroup>Applications/Engineering</softwareGroup>
</rpm>
<assembly>
<copy>
<path>${project.build.directory}/appassembler/repo/</path>
<toDir>${rpm.path}/repo/</toDir><!-- hard coded in appassembler -->
</copy>
<!-- Copy filtered wrapper script instead of bin directly -->
<copy>
<path>${project.build.directory}/classes/</path>
<toDir>${rpm.path}/bin</toDir>
<fileAttributes>
<user>${rpm.username}</user>
<group>${rpm.groupname}</group>
<mode>6774</mode>
</fileAttributes>
</copy>
<copy>
<path>${project.build.directory}/appassembler/bin</path>
<toDir>${rpm.path}/bin</toDir>
<fileAttributes>
<mode>6774</mode>
</fileAttributes>
</copy>
<copy>
<path>etc/</path>
<toDir>${rpm.path}/etc</toDir>
</copy>
<!-- <mkdir>
<path>${rpm.path}/run</path>
</mkdir>-->
<mkdir>
<path>${rpm.path}/logs</path>
<attributes>
<group>${rpm.log.groupname}</group>
</attributes>
</mkdir>
</assembly>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<rpm.appname>mactor</rpm.appname>
<rpm.username>${rpm.appname}</rpm.username>
<rpm.groupname>${rpm.appname}</rpm.groupname>
<rpm.log.groupname>${rpm.groupname}-log</rpm.log.groupname>
<rpm.path>/usr/local/${rpm.appname}</rpm.path>
<rpm.revision>1</rpm.revision>
<jswDir>${project.build.directory}/jsw/${rpm.appname}</jswDir>
<jmxremote.port>1099</jmxremote.port>
<initialMemorySize>256M</initialMemorySize>
<maxMemorySize>512M</maxMemorySize>
<mactorVersion>2.1.1</mactorVersion>
</properties>
</project>