<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>
	<groupId>br.puc-rio.tecgraf.csbase</groupId>
	<artifactId>csbase-login-ca</artifactId>
	<version>0.1.1</version>
	<name>CA Login Protocol</name>
	<description>Protocolo de login CA Petrobras</description>
	<packaging>jar</packaging>

	<properties>
		<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
		<cav4.version>4.12.8</cav4.version>
	</properties>

	<repositories>
		<repository>
			<id>Tecgraf Releases</id>
			<name>Tecgraf Releases</name>
			<url>http://maven.tecgraf.puc-rio.br:8081/nexus/content/repositories/releases</url>
		</repository>
		<repository>
			<id>Tecgraf 3rd Party</id>
			<name>Tecgraf 3rd Party</name>
			<url>http://maven.tecgraf.puc-rio.br:8081/nexus/content/repositories/thirdparty</url>
		</repository>
		<repository>
			<id>Tecgraf Snapshots</id>
			<name>Tecgraf Snapshots</name>
			<url>http://maven.tecgraf.puc-rio.br:8081/nexus/content/repositories/snapshots</url>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>Tecgraf Releases</id>
			<name>Tecgraf Releases</name>
			<url>http://maven.tecgraf.puc-rio.br:8081/nexus/content/repositories/releases</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>

	<distributionManagement>
		<repository>
			<id>tecgraf-releases</id>
			<name>Releases do Tecgraf</name>
			<url>http://maven.tecgraf.puc-rio.br:8081/nexus/content/repositories/releases</url>
		</repository>
		<snapshotRepository>
			<id>tecgraf-snapshots</id>
			<name>Snapshots do Tecgraf</name>
			<url>http://maven.tecgraf.puc-rio.br:8081/nexus/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<scm>
		<url>https://git.tecgraf.puc-rio.br/csbase-dev/csbase-login-ca</url>
		<connection>scm:git:ssh://git@git.tecgraf.puc-rio.br/csbase-dev/csbase-login-ca.git</connection>
		<developerConnection>scm:git:ssh://git@git.tecgraf.puc-rio.br/csbase-dev/csbase-login-ca.git</developerConnection>
		<tag>csbase-login-ca-0.1.1</tag>
	</scm>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>2.5.3</version>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3</version>
				<configuration>
					<compilerArgument>-Xlint:deprecation</compilerArgument>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>3.2.0</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<phase>verify</phase>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.10</version>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
							<excludeScope>provided</excludeScope>
							<outputDirectory>${project.build.directory}/libs</outputDirectory>
							<overWriteReleases>false</overWriteReleases>
							<overWriteSnapshots>false</overWriteSnapshots>
							<overWriteIfNewer>true</overWriteIfNewer>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.5.2</version>
				<dependencies>
					<dependency>
						<groupId>br.puc-rio.tecgraf.csbase</groupId>
						<artifactId>assembly-plugin</artifactId>
						<version>1.0.0</version>
					</dependency>
				</dependencies>
				<configuration>
					<descriptorRefs>
						<descriptorRef>csbase-assembly-plugin</descriptorRef>
					</descriptorRefs>
				</configuration>
				<executions>
					<execution>
						<id>Gera o zip</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>br.puc-rio.tecgraf.csbase</groupId>
			<artifactId>csbase-server-plugin</artifactId>
			<version>MLM-3.0.1</version>
			<exclusions>
				<exclusion>
					<groupId>org.jacorb</groupId>
					<artifactId>jacorb</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.jacorb</groupId>
					<artifactId>jacorb-omgapi</artifactId>
				</exclusion>
			</exclusions>
			<scope>provided</scope>
		</dependency>

		<!-- CAv3 -->
		<dependency>
			<groupId>br.puc-rio.tecgraf.marlim.externals</groupId>
			<artifactId>InterfaceCAv3</artifactId>
			<version>3.10.05.19</version>
		</dependency>
		<dependency>
			<groupId>br.puc-rio.tecgraf.marlim.externals</groupId>
			<artifactId>autenticacao-cenpes</artifactId>
			<version>1.0.0</version>
		</dependency>

		<!-- CAv4 -->
		<dependency>
			<groupId>br.com.petrobras.security</groupId>
			<artifactId>security-standalone</artifactId>
			<version>${cav4.version}</version>
			<type>pom</type>
		</dependency>

	</dependencies>

</project>
