<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>
		<artifactId>maven-parent</artifactId>
		<groupId>org.gcube.tools</groupId>
		<version>1.0.0</version>
	</parent>

	<groupId>org.gcube.common</groupId>
	<artifactId>geoserverinterface</artifactId>
	<version>1.10.3-3.1.1</version>

	<name>Geoserver Interface</name>
	<description>GeoServer communication layer</description>
	<packaging>jar</packaging>

	<scm>
		<connection>scm:svn:http://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/${project.artifactId}</connection>
		<developerConnection>scm:svn:https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/${project.artifactId}</developerConnection>
		<url>http://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/${project.artifactId}</url>
	</scm>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<geotools.version>8.0-M4</geotools.version>
		<distroDirectory>distro</distroDirectory>
	</properties>

	<dependencies>

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>1.6.4</version>
		</dependency>

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>1.6.4</version>
		</dependency>

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

		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.6</version>
		</dependency>

		<dependency>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
			<version>3.1</version>
		</dependency>

		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1.1</version>
		</dependency>

		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.16</version>
		</dependency>



		<!-- <dependency> <groupId>org.geotools</groupId> <artifactId>gt-cql</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools</groupId> 
			<artifactId>gt-graph</artifactId> <version>${geotools.version}</version> 
			</dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-main</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools</groupId> 
			<artifactId>gt-epsg-hsql</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools</groupId> <artifactId>gt-epsg-extension</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools</groupId> 
			<artifactId>gt-coverage</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools</groupId> <artifactId>gt-metadata</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools</groupId> 
			<artifactId>gt-opengis</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools</groupId> <artifactId>gt-referencing</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools.xsd</groupId> 
			<artifactId>gt-xsd-wcs</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools</groupId> <artifactId>gt-api</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools</groupId> 
			<artifactId>gt-wfs</artifactId> <version>8.0-M4</version> </dependency> <dependency> 
			<groupId>org.geotools</groupId> <artifactId>gt-wms</artifactId> <version>8.0-M4</version> 
			</dependency> <dependency> <groupId>org.geotools.xsd</groupId> <artifactId>gt-xsd-fes</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools.xsd</groupId> 
			<artifactId>gt-xsd-filter</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools</groupId> <artifactId>gt-render</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools</groupId> 
			<artifactId>gt-xml</artifactId> <version>8.0-M4</version> </dependency> <dependency> 
			<groupId>org.geotools.xsd</groupId> <artifactId>gt-xsd-core</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools.xsd</groupId> 
			<artifactId>gt-xsd-gml2</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools.xsd</groupId> <artifactId>gt-xsd-gml3</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools.xsd</groupId> 
			<artifactId>gt-xsd-kml</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools.xsd</groupId> <artifactId>gt-xsd-ows</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools.xsd</groupId> 
			<artifactId>gt-xsd-sld</artifactId> <version>8.0-M4</version> </dependency> 
			<dependency> <groupId>org.geotools.xsd</groupId> <artifactId>gt-xsd-wfs</artifactId> 
			<version>8.0-M4</version> </dependency> <dependency> <groupId>org.geotools.xsd</groupId> 
			<artifactId>gt-xsd-wms</artifactId> <version>8.0-M4</version> </dependency> -->
			
	 	<!-- <dependency>
			<groupId>org.geotools</groupId>
			<artifactId>gt-main</artifactId>
			<version>8.0-M4</version>
		 	<exclusions>
				<exclusion>
					<artifactId>gt-opengis</artifactId>
					<groupId>org.geotools</groupId>
				</exclusion>
			</exclusions>
		</dependency>-->
		
		<!-- <dependency> <groupId>org.geotools</groupId> <artifactId>gt-shapefile</artifactId> 
			<version>${geotools.version}</version> </dependency> -->
		<!-- <dependency> <groupId>org.geotools</groupId> <artifactId>gt-swing</artifactId> 
			<version>${geotools.version}</version> </dependency> -->
		<!-- <dependency> <groupId>org.geotools</groupId> <artifactId>gt-swing</artifactId> 
			<version>${geotools.version}</version> </dependency> -->

		<dependency>
			<groupId>org.geotoolkit.pending</groupId>
			<artifactId>geotk-style</artifactId>
			<version>3.20</version>
		</dependency>
		<dependency>
  <groupId>org.geotoolkit.pending</groupId>
  <artifactId>geotk-xml-sld</artifactId>
  <version>3.20</version>
</dependency>
		
		<dependency>
			<groupId>org.geotoolkit</groupId>
			<artifactId>geotk-metadata</artifactId>
			<version>3.20-geoapi-3.0</version>
		</dependency>
		<dependency>
			<groupId>org.w3c</groupId>
			<artifactId>dom</artifactId>
			<version>2.3.0-jaxb-1.0.6</version>
		</dependency>
		<dependency>
			<groupId>org.geotoolkit</groupId>
			<artifactId>geotk-referencing</artifactId>
			<version>3.20-geoapi-3.0</version>
		</dependency>

		<dependency>
			<groupId>org.gcube.data.transfer</groupId>
			<artifactId>agent-library</artifactId>
			<version>2.0.0-3.1.1</version>
		</dependency>

		<dependency>
			<groupId>org.gcube.core</groupId>
			<artifactId>common-utils-encryption</artifactId>
			<version>1.0.2-3.1.1</version>
		</dependency>

		<dependency>
			<groupId>it.geosolutions</groupId>
			<artifactId>geoserver-manager</artifactId>
			<version>1.5-SNAPSHOT</version>
			<exclusions>
				<exclusion>
					<artifactId>slf4j-api</artifactId>
					<groupId>org.slf4j</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.gcube.resources</groupId>
			<artifactId>registry-publisher</artifactId>
			<version>1.2.3-3.1.1</version>
		</dependency>
	</dependencies>

	<repositories>
		<repository>
			<id>maven2-repository.dev.java.net</id>
			<name>Java.net repository</name>
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/java.net-m2/</url>
		</repository>
		<repository>
			<id>osgeo</id>
			<name>Open Source Geospatial Foundation Repository</name>
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/osgeo/</url>
		</repository>

		<repository>
			<id>geo-solutions</id>
			<name>geo-solutions</name>
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/geo-solutions-snapshots/</url>
		</repository>

		<repository>
			<id>maven.geotoolkit</id>
			<name>maven.geotoolkit</name>
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/geotoolkit/</url>
		</repository>


	</repositories>

	<build>
		<plugins>

			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.5</version>
				<executions>
					<execution>
						<id>copy-profile</id>
						<phase>install</phase>
						<goals>
							<goal>copy-resources</goal>
						</goals>
						<configuration>
							<outputDirectory>target</outputDirectory>
							<resources>
								<resource>
									<directory>${distroDirectory}</directory>
									<filtering>true</filtering>
									<includes>
										<include>profile.xml</include>
									</includes>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<configuration>
					<descriptors>
						<descriptor>${distroDirectory}/descriptor.xml</descriptor>
					</descriptors>
				</configuration>
				<executions>
					<execution>
						<id>servicearchive</id>
						<phase>install</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

		</plugins>
	</build>
</project>
