<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>
	

<parent>
        <groupId>it.geosolutions.unredd</groupId>
        <artifactId>unredd-geoserver</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>


	<groupId>it.geosolutions.unredd</groupId>
	<artifactId>unredd-geoserver2.2</artifactId>
	<packaging>jar</packaging>
	<version>1.0-SNAPSHOT</version>

	<name>UN-REDD Geoserver: geoserver2.2</name>
	<description>UN-REDD Geoserver - a geoserver 2.2 custom build for nfms system</description>

	


	<dependencies>
		<!-- Geoserver base installation -->
		<dependency>
			<groupId>org.geoserver.web</groupId>
			<artifactId>web-app</artifactId>
		</dependency>

		<!-- Workaround: this is a transitive dependency of web-core module without 
			force the scope to compile the scope is setted to test. Why? -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>1.5.11</version>
			<scope>compile</scope>
		</dependency>

		<!-- common extension modules -->
		<dependency>
			<groupId>org.geoserver.extension</groupId>
			<artifactId>control-flow</artifactId>
		</dependency>

		<dependency>
			<groupId>it.geosolutions.unredd</groupId>
			<artifactId>onlinestats</artifactId>
		</dependency>

		<dependency>
			<groupId>org.geoserver.extension</groupId>
			<artifactId>wps-core</artifactId>
		</dependency>
		<dependency>
			<groupId>org.geoserver.extension</groupId>
			<artifactId>web-wps</artifactId>
		</dependency>

		<!-- Jetty test dependencies to start GeoServer from an IDE -->
		<dependency>
			<groupId>org.mortbay.jetty</groupId>
			<artifactId>jetty</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.mortbay.jetty</groupId>
			<artifactId>jetty-naming</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.mortbay.jetty</groupId>
			<artifactId>jetty-plus</artifactId>
			<scope>test</scope>
		</dependency>

	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.mortbay.jetty</groupId>
				<artifactId>maven-jetty-plugin</artifactId>
				<version>6.1.8</version>
				<configuration>
					<contextPath>geoserver</contextPath>
					<connectors>
						<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
							<port>8080</port>
							<maxIdleTime>10000</maxIdleTime>
						</connector>
					</connectors>
					<contextPath>geoserver</contextPath>
					<!-- uncomment following to set a GEOSERVER_DATA_DIR -->
					<!-- <systemProperties> <systemProperty> <name>GEOSERVER_DATA_DIR</name> 
						<value>/home/ak/geoserver_data</value> </systemProperty> </systemProperties> -->
				</configuration>
			</plugin>
			<plugin>
				<inherited>true</inherited>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<warName>geoserver</warName>
					<webappDirectory>${project.build.directory}/geoserver</webappDirectory>
				</configuration>
				<executions>
					<execution>
						<phase>install</phase>
						<goals>
							<goal>war</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>