<?xml version="1.0" encoding="UTF-8"?>
<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">

	<parent>
		<groupId>org.jboss.seam</groupId>
		<artifactId>parent</artifactId>
		<version>2.2.0.GA</version>
	</parent>


	<modelVersion>4.0.0</modelVersion>
	<groupId>net.ihe.gazelle.proxy</groupId>
	<artifactId>gazelle-proxy</artifactId>
	<packaging>pom</packaging>
	<version>0.7</version>
	<name>gazelle-proxy</name>

	<scm>
		<connection>scm:svn:svn://scm.gforge.inria.fr/svn/gazelle/Maven/gazelle-proxy/tags/gazelle-proxy-0.7</connection>
		<developerConnection>scm:svn:svn+ssh://scm.gforge.inria.fr/svn/gazelle/Maven/gazelle-proxy/tags/gazelle-proxy-0.7</developerConnection>
	</scm>

	<properties>
		<version.seam>2.2.0.GA</version.seam>
		<version.jboss.app>5</version.jboss.app>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	</properties>

	<repositories>
		<repository>
			<id>irisa-sumo</id>
			<name>Sumo Irisa Public Maven Repository Group</name>
			<url>http://gazelle.ihe.net/nexus/content/groups/public/</url>
			<layout>default</layout>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>

	<dependencies>
		<dependency>
			<groupId>de.akquinet.jbosscc</groupId>
			<artifactId>jbosscc-needle-ejb</artifactId>
			<version>1.1</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>de.akquinet.jbosscc</groupId>
			<artifactId>jbosscc-needle-seam</artifactId>
			<version>1.1</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.8.1</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.easymock</groupId>
			<artifactId>easymock</artifactId>
			<version>2.5.2</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.easymock</groupId>
			<artifactId>easymockclassextension</artifactId>
			<version>2.5.2</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-ear-plugin</artifactId>
					<version>2.4.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-ejb-plugin</artifactId>
					<version>2.3</version>
					<configuration>
						<ejbVersion>3.0</ejbVersion>
						<archive>
							<manifest>
								<addClasspath>true</addClasspath>
							</manifest>
						</archive>
					</configuration>
				</plugin>
				<plugin>
					<artifactId>maven-jar-plugin</artifactId>
					<version>2.3</version>
					<executions>
						<execution>
							<goals>
								<goal>test-jar</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.5</version>
					<configuration>
						<forkMode>once</forkMode>
						<argLine>-enableassertions</argLine>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>net.ihe.gazelle.proxy</groupId>
				<artifactId>gazelle-proxy-netty</artifactId>
				<version>0.7</version>
				<type>jar</type>
			</dependency>
			<dependency>
				<groupId>net.ihe.gazelle.proxy</groupId>
				<artifactId>gazelle-proxy-datamodel</artifactId>
				<version>0.7</version>
				<type>jar</type>
			</dependency>
			<dependency>
				<groupId>net.ihe.gazelle.proxy</groupId>
				<artifactId>gazelle-proxy-ejb</artifactId>
				<version>0.7</version>
				<type>ejb</type>
			</dependency>
			<dependency>
				<groupId>net.ihe.gazelle.proxy</groupId>
				<artifactId>gazelle-proxy-war</artifactId>
				<version>0.7</version>
				<type>war</type>
			</dependency>

			<dependency>
				<groupId>net.ihe.gazelle.simulators.tls</groupId>
				<artifactId>TLSSimulator-pki-jar</artifactId>
				<version>1.4</version>
				<type>jar</type>
			</dependency>

			<dependency>
				<groupId>net.ihe.gazelle.datable</groupId>
				<artifactId>gazelle-datatable-jar</artifactId>
				<version>1.3</version>
				<type>jar</type>
			</dependency>
			<dependency>
				<groupId>net.ihe.gazelle.datable</groupId>
				<artifactId>gazelle-datatable-war</artifactId>
				<version>1.3</version>
				<type>war</type>
			</dependency>

			<dependency>
				<groupId>org.jboss.seam</groupId>
				<artifactId>jboss-seam</artifactId>
				<version>${version.seam}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.jboss.jbossas</groupId>
				<artifactId>jboss-as-component-matrix</artifactId>
				<type>pom</type>
				<scope>import</scope>
				<version>5.1.0.GA</version>
			</dependency>

		</dependencies>
	</dependencyManagement>

	<reporting>
		<plugins>
			<plugin>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.6.1</version>
				<configuration>
					<aggregate>true</aggregate>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-report-plugin
				</artifactId>
				<version>2.5</version>
			</plugin>
		</plugins>
	</reporting>


	<profiles>

		<profile>
			<id>development</id>

			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<cas.service>http://127.0.0.1:8080/proxy/</cas.service>
				<evsclient.url>http://gazelle.ihe.net/EVSClient/</evsclient.url>

				<dicom.storage>/tmp/DICOM</dicom.storage>
				<storage.tmp>/tmp</storage.tmp>

				<!-- development mode (disable in production) -->
				<seam.debug>true</seam.debug>

				<!-- datasource configuration -->
				<jdbc.connection.url>jdbc:postgresql://localhost/gazelle-proxy</jdbc.connection.url>
				<jdbc.driver.class>org.postgresql.Driver</jdbc.driver.class>
				<jdbc.user>gazelle</jdbc.user>
				<jdbc.password>gazelle</jdbc.password>
				<min.pool.size>1</min.pool.size>
				<max.pool.size>10</max.pool.size>

				<!-- pki datasource configuration -->
				<jdbc.pki.connection.url>jdbc:postgresql:tls-simulator</jdbc.pki.connection.url>
				<jdbc.pki.user>gazelle</jdbc.pki.user>
				<jdbc.pki.password>gazelle</jdbc.pki.password>

				<!-- package exploded war file -->
				<exploded.war.file>true</exploded.war.file>

				<!-- development mode (exclude in production) -->
				<exclude.bootstrap>false</exclude.bootstrap>

				<!-- persistence.xml configuration -->
				<hibernate.dialect>
					org.hibernate.dialect.PostgreSQLDialect
				</hibernate.dialect>
				<hibernate.hbm2ddl.auto>
					update
				</hibernate.hbm2ddl.auto>
				<hibernate.show_sql>
					true
				</hibernate.show_sql>
			</properties>
		</profile>

		<profile>
			<id>gazelle</id>

			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>

			<properties>
				<cas.service>http://gazelle.ihe.net/proxy/</cas.service>
				<evsclient.url>http://gazelle.ihe.net/EVSClient/</evsclient.url>

				<dicom.storage>/opt/proxy/DICOM</dicom.storage>
				<storage.tmp>/opt/proxy/tmp</storage.tmp>

				<!-- development mode (disable in production) -->
				<seam.debug>false</seam.debug>

				<!-- datasource configuration -->
				<jdbc.connection.url>jdbc:postgresql://kujira.irisa.fr/gazelle-proxy</jdbc.connection.url>
				<jdbc.driver.class>org.postgresql.Driver</jdbc.driver.class>
				<jdbc.user>gazelle</jdbc.user>
				<jdbc.password>gazelle</jdbc.password>
				<min.pool.size>1</min.pool.size>
				<max.pool.size>5</max.pool.size>

				<!-- pki datasource configuration -->
				<jdbc.pki.connection.url>jdbc:postgresql://jumbo.irisa.fr/tls-simulator</jdbc.pki.connection.url>
				<jdbc.pki.user>gazelle</jdbc.pki.user>
				<jdbc.pki.password>gazelle</jdbc.pki.password>

				<!-- development mode (exclude in production) -->
				<exclude.bootstrap>true</exclude.bootstrap>

				<!-- package exploded war file -->
				<exploded.war.file>false</exploded.war.file>

				<!-- persistence.xml configuration -->
				<hibernate.dialect>
					org.hibernate.dialect.PostgreSQLDialect
				</hibernate.dialect>
				<hibernate.hbm2ddl.auto>
					update
				</hibernate.hbm2ddl.auto>
				<hibernate.show_sql>
					false
				</hibernate.show_sql>
			</properties>
		</profile>

	</profiles>

	<modules>
		<module>gazelle-proxy-netty</module>
		<module>gazelle-proxy-datamodel</module>
		<module>gazelle-proxy-ejb</module>
		<module>gazelle-proxy-war</module>
		<module>gazelle-proxy-ear</module>
		<module>gazelle-proxy-ws</module>
	</modules>

	<distributionManagement>
		<repository>
			<id>sumo</id>
			<url>http://gazelle.ihe.net/nexus/content/repositories/releases/</url>
			<layout>default</layout>
		</repository>
		<snapshotRepository>
			<id>sumo</id>
			<url>http://gazelle.ihe.net/nexus/content/repositories/snapshots/</url>
			<layout>default</layout>
		</snapshotRepository>
	</distributionManagement>

</project>