Skip to content
pom.xml 5.73 KiB
Newer Older
Patrik Dufresne's avatar
Patrik Dufresne committed
<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>
	<parent>
Patrik Dufresne's avatar
Patrik Dufresne committed
		<groupId>com.patrikdufresne</groupId>
		<artifactId>planimod-parent</artifactId>
		<version>${revision}</version>
Patrik Dufresne's avatar
Patrik Dufresne committed
	<artifactId>planimod</artifactId>
	<profiles>
		<profile>
			<id>linux_x86_64</id>
			<activation>
				<os>
					<name>linux</name>
					<arch>amd64</arch>
				</os>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.eclipse.swt</groupId>
					<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
					<scope>provided</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>win_x86</id>
			<activation>
				<os>
					<family>windows</family>
					<arch>amd64</arch>
				</os>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.eclipse.swt</groupId>
					<artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>
					<scope>provided</scope>
				</dependency>
			</dependencies>
		</profile>
	</profiles>
	<dependencies>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-core</artifactId>
			<version>4.2.0.Final</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.5</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jface</groupId>
			<artifactId>org.eclipse.jface</artifactId>
			<version>3.8.0.v20120521-2329</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.core.databinding</groupId>
			<artifactId>org.eclipse.core.databinding.property</artifactId>
			<version>1.4.0.I20110222-0800</version>
		</dependency>
		<dependency>
			<groupId>org.eclipse.ui</groupId>
			<artifactId>org.eclipse.ui.forms</artifactId>
			<version>3.5.200.v20120521-2329</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.10</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.patrikdufresne.managers</groupId>
			<artifactId>com.patrikdufresne.managers.jface</artifactId>
Patrik Dufresne's avatar
Patrik Dufresne committed
			<version>1.21</version>
		</dependency>
		<dependency>
			<groupId>com.patrikdufresne.managers</groupId>
			<artifactId>com.patrikdufresne.managers.databinding</artifactId>
Patrik Dufresne's avatar
Patrik Dufresne committed
			<version>1.21</version>
		</dependency>
		<dependency>
			<groupId>com.patrikdufresne.printing</groupId>
			<artifactId>com.patrikdufresne.printing</artifactId>
			<version>0.8</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.0.11</version>
		</dependency>
		<dependency>
Patrik Dufresne's avatar
Patrik Dufresne committed
			<groupId>com.patrikdufresne</groupId>
			<artifactId>ilp-glpk</artifactId>
			<version>${project.version}</version>
Patrik Dufresne's avatar
Patrik Dufresne committed
		<dependency>
			<groupId>com.googlecode.gettext-commons</groupId>
			<artifactId>gettext-commons</artifactId>
			<version>0.9.8</version>
		</dependency>
		<dependency>
			<groupId>com.patrikdufresne</groupId>
			<artifactId>planimod-icons</artifactId>
			<version>${project.version}</version>
		</dependency>
	</dependencies>
	<build>
		<!-- Include the .properties file located in /src/main/java -->
		<resources>
			<resource>
				<directory>src/main/resources</directory>
			</resource>
			<resource>
				<directory>src/main/java</directory>
				<includes>
					<include>**/*.properties</include>
				</includes>
			</resource>
		</resources>
		<plugins>
Patrik Dufresne's avatar
Patrik Dufresne committed
			<!-- Write version in Manifest -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<!-- Formatting -->
			<plugin>
				<groupId>com.googlecode.maven-java-formatter-plugin</groupId>
				<artifactId>maven-java-formatter-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>format</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
Patrik Dufresne's avatar
Patrik Dufresne committed
					<configFile>${project.basedir}/../formatter.xml</configFile>
					<lineEnding>CRLF</lineEnding>
				</configuration>
			</plugin>
			<!-- Add license header -->
			<plugin>
				<groupId>com.mycila.maven-license-plugin</groupId>
				<artifactId>maven-license-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-sources</phase>
						<goals>
							<goal>format</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
Patrik Dufresne's avatar
Patrik Dufresne committed
					<header>license-header.txt</header>
Patrik Dufresne's avatar
Patrik Dufresne committed
			<!-- Localized -->
			<!-- This plugin required to install "gettext". -->
			<!-- sudo apt-get install gettext -->
			<plugin>
				<groupId>com.googlecode.gettext-commons</groupId>
				<artifactId>gettext-maven-plugin</artifactId>
				<version>1.2.4</version>
				<executions>
					<execution>
						<goals>
							<goal>dist</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<poDirectory>${basedir}/src/main/po</poDirectory>
					<!-- Generate translation for _() -->
					<keywords>-k_</keywords>
					<!-- Package and filename of the generated class or properties files -->
					<targetBundle>com.patrikdufresne.planimod.messages</targetBundle>
					<outputFormat>properties</outputFormat>
				</configuration>
			</plugin>
			<!-- Need the following to overcome a bug with surefire and java8 -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<argLine>-Xmx512m</argLine>
					<useSystemClassLoader>false</useSystemClassLoader>
				</configuration>
			</plugin>
Patrik Dufresne's avatar
Patrik Dufresne committed
</project>