<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>org.italiangrid</groupId>
	<artifactId>voms-api-java</artifactId>
	<version>2.0.10</version>
	<packaging>jar</packaging>

	<name>voms-api-java</name>

	<url>https://twiki.cnaf.infn.it/twiki/bin/view/VOMS</url>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<assembly.java.dir>/usr/share/java</assembly.java.dir>
		<assembly.doc.dir>/usr/share/doc/${project.name}-${project.version}</assembly.doc.dir>
		<assembly.javadoc.dir>/usr/share/javadoc/${project.name}</assembly.javadoc.dir>
		<bouncycastle.version>1.45</bouncycastle.version>
		<excludedTests>**/LoadTest.java</excludedTests>
	</properties>

	<profiles>
		<profile>
			<id>enableLoadTests</id>
			<properties>
				<excludedTests>none</excludedTests>
			</properties>
		</profile>
	</profiles>

	<developers>
		<developer>
			<id>andreac</id>
			<name>Andrea Ceccanti</name>
			<email>andrea.ceccanti@cnaf.infn.it</email>
			<organization>INFN CNAF</organization>
			<roles>
				<role>Developer</role>
			</roles>
		</developer>
		<developer>
			<id>vciaschi</id>
			<name>Vincenzo Ciaschini</name>
			<email>vincenzo.ciaschini@cnaf.infn.it</email>
			<organization>INFN CNAF</organization>
			<roles>
				<role>Developer</role>
			</roles>
		</developer>
	</developers>

	<build>
		<plugins>
			
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<configuration>
                    <finalName>voms-api-java</finalName>
					<descriptors>
						<descriptor>${basedir}/src/main/assembly/voms-api-java.xml</descriptor>
					</descriptors>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.8</version>
				<configuration>
					<outputDirectory>${project.build.directory}/javadoc</outputDirectory>
					<reportOutputDirectory>${project.reporting.outputDirectory}/javadoc</reportOutputDirectory>
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<phase>site</phase>
						<goals>
							<goal>aggregate</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.13</version>
				<configuration>
					<excludes>
						<exclude>${excludedTests}</exclude>
					</excludes>
					<forkMode>always</forkMode>
					<argLine>-Xmx128M</argLine>
				</configuration>
			</plugin>

		</plugins>
	</build>

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

		<dependency>
			<groupId>org.bouncycastle</groupId>
			<artifactId>bcprov-ext-jdk16</artifactId>
			<version>${bouncycastle.version}</version>
		</dependency>


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

		<dependency>
			<groupId>commons-cli</groupId>
			<artifactId>commons-cli</artifactId>
			<version>1.1</version>
		</dependency>

		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
			<version>2.3</version>
		</dependency>
    
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.0.1</version>
            <scope>test</scope>
        </dependency>
	</dependencies>
	
	<distributionManagement>
	    <repository>
	      <id>cnaf-releases</id>
	      <name>CNAF releases</name>
	      <url>http://radiohead.cnaf.infn.it:8081/nexus/content/repositories/cnaf-releases/</url>
	    </repository>

	    <snapshotRepository>
	      <id>cnaf-snapshots</id>
	      <name>CNAF snapshots</name>
	      <url>http://radiohead.cnaf.infn.it:8081/nexus/content/repositories/cnaf-snapshots/</url>
	    </snapshotRepository>
	</distributionManagement>
	
</project>
