<?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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.github.jorge2m</groupId>
	<artifactId>testmaker</artifactId>
	<version>2.2.2</version>
	<packaging>pom</packaging>
	
	<name>testmaker</name> 
	<description>Framework for the construction of End To End Testcases based on Selenium WebDriver</description>
	<url>http://github.com/AubaySpain/testmaker</url>
	
	<licenses> 
		<license>
			<name>GPL-v3.0</name>
			<url>http://github.com/AubaySpain/testmaker/blob/master/LICENSE</url>
		</license>
	</licenses>
	
	<developers>
		<developer>
			<name>Jorge Muñoz Martínez</name>
			<email>jorge.and.2m@gmail.com</email>
			<organization>com.github.jorge2m</organization>
			<organizationUrl>http://github.com/jorge2m</organizationUrl>
		</developer>
	</developers>
	
	<scm>
		<connection>scm:git:git://github.com/AubaySpain/testmaker.git</connection>
		<developerConnection>scm:git:ssh://github.com:AubaySpain/testmaker.git</developerConnection>
		<url>http://github.com/AubaySpain/testmaker/tree/master</url>
	</scm>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	</properties>

	<profiles>
		<profile>
			<id>develop</id>
			<modules>
				<module>archetypes</module>
				<module>core</module>
				<module>examples</module>
			</modules>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>
		<profile>
			<id>CI</id>
			<modules>
				<module>core</module>
				<module>examples</module>
			</modules>
		</profile>
		<profile> 
			<id>release</id>
			<modules>
				<!--TODO: Search a solution (error 403)-->
				<!--<module>archetypes</module>-->
				<module>core</module>
			</modules>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>2.9.1</version>
						<configuration>
							<sourcepath>/src/main/java</sourcepath>
							<additionalparam>-Xdoclint:none</additionalparam>
						</configuration>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.3</version>  
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>3.0.0-M4</version>
				<dependencies>
					<dependency>
						<groupId>org.apache.maven.surefire</groupId>
						<artifactId>surefire-junit47</artifactId>
						<version>3.0.0-M4</version>
					</dependency>
				</dependencies>
			</plugin>
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
				<version>1.6.13</version>
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
					<stagingProgressTimeoutMinutes>30</stagingProgressTimeoutMinutes>
				</configuration>
			</plugin>
		</plugins>
	</build>
	
	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>ossrh</id>
			<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>
</project>
<!-- Deploy in maven central: mvn clean deploy -Prelease -->
<!-- If error 403 happens follow that instructions for deploy manually:
https://central.sonatype.org/publish/release/#close-and-drop-or-release-your-staging-repository-->

