<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>lv.org.substance.potman</groupId>
<artifactId>potman</artifactId>
<version>1.0.1-SNAPSHOT</version>
<name>Potman</name>
<description>Poker Tournament Manager</description>
<packaging>jar</packaging>
<inceptionYear>2010</inceptionYear>
<url>http://pot-man.appspot.com</url>
<scm>
<connection>scm:hg:http://potman.hg.sourceforge.net:8000/hgroot/potman/potman</connection>
<developerConnection>scm:hg:file:///home/andris/sub/potman.release</developerConnection>
<url>http://potman.hg.sourceforge.net:8000/hgroot/potman/potman</url>
</scm>
<dependencies>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.1</version>
</dependency>
<!-- Spring Framework -->
<!-- Modules spring-bean, spring-core and spring-context are required
by spring-test (they however are not retrieved via default dependency mechanism
for some reason) -->
<!-- Add more spring modules as needed -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${springframework.version}</version>
</dependency>
<!-- Apache Pivot -->
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-core</artifactId>
<version>${pivot.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-wtk</artifactId>
<version>${pivot.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pivot</groupId>
<artifactId>pivot-wtk-terra</artifactId>
<version>${pivot.version}</version>
<scope>runtime</scope>
</dependency>
<!-- support for using SVG -->
<dependency>
<groupId>com.kitfox.svg</groupId>
<artifactId>svg-salamander</artifactId>
<version>1.0</version>
</dependency>
<!-- Logging -->
<!-- common logging API -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
<!-- <scope>provided</scope> <optional>true</optional> -->
</dependency>
<!-- concrete logging implementation -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
<!-- <scope>provided</scope> <optional>true</optional> -->
</dependency>
<!--================== -->
<!--== Unit testing == -->
<!--================== -->
<!-- JUnit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
<!-- Mock objects for unit testing <dependency> <groupId>mocked</groupId>
<artifactId>mocked</artifactId> <version>0.3</version> <!-<version>0.4-java5-20060303</version>
-> <scope>test</scope> </dependency> -->
<!-- Spring Framework's support for testing -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${springframework.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Run from development dir using "mvn exec:java" -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.apache.pivot.wtk.DesktopApplicationContext</mainClass>
<arguments>
<argument>lv.org.substance.potman.client.App</argument>
</arguments>
</configuration>
</plugin>
<!-- Make runnable jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>
org.apache.pivot.wtk.DesktopApplicationContext
</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
<!-- this should add splash.jpg to manifiest, but doesn't
<manifestEntries>
<SplashScreen-Image>splash.jpg</SplashScreen-Image>
</manifestEntries>
-->
</archive>
</configuration>
</plugin>
<!-- Make complete packages for download -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<configuration>
<descriptorRefs>
<descriptorRef>src</descriptorRef>
</descriptorRefs>
<descriptors>
<descriptor>
src/assembly/bin.xml
</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>runnable</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- make uber-jar to be used as pivot applet -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedClassifierName>web</shadedClassifierName>
<shadedArtifactAttached>true</shadedArtifactAttached>
<artifactSet>
<excludes>
<exclude>*:log4j:*</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.SF</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource>
</transformer>
<!--
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class></Main-Class>
<Class-Path></Class-Path>
</manifestEntries>
</transformer>
-->
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<!-- Java compiler version -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<springframework.version>3.0.5.RELEASE</springframework.version>
<pivot.version>2.0</pivot.version>
<substance-repo-url>https://substance.org.lv</substance-repo-url>
</properties>
<repositories>
<!-- svg-salamander is here -->
<repository>
<id>bitbucket.org</id>
<name>Internal Maven2 Repository</name>
<url>https://bitbucket.org/W1M0/maven/raw/tip/2/</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>substance-central</id>
<name>Substance Releases</name>
<uniqueVersion>false</uniqueVersion>
<url>${substance-repo-url}/artifactory/libs-releases-local</url>
</repository>
<snapshotRepository>
<id>substance-snapshots</id>
<name>Substance Snapshots</name>
<uniqueVersion>true</uniqueVersion>
<url>${substance-repo-url}/artifactory/libs-snapshots-local</url>
</snapshotRepository>
</distributionManagement>
<organization>
<name>IT Substance</name>
<url>http://substance.org.lv</url>
</organization>
<developers>
<developer>
<id>drone</id>
<email>drone@substance.org.lv</email>
</developer>
</developers>
<issueManagement>
<system>JIRA</system>
<url>https://substance.org.lv/jira/browse/PTM</url>
</issueManagement>
</project>