<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">
	<parent>
		<groupId>br.com.objectos</groupId>
		<artifactId>way</artifactId>
		<version>1.22.0</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>rio</artifactId>
	<name>objectos :: rio</name>
	<version>0.4.0</version>
	<packaging>pom</packaging>
	<description>RIO: Rede interna objectos</description>
	<url>https://github.com/objectos/rio</url>
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<scm>
		<connection>scm:git:git://objectos/rio.git</connection>
		<developerConnection>scm:git:git@github.com:objectos/rio.git</developerConnection>
		<url>https://github.com/objectos/rio</url>
		<tag>rio-0.4.0</tag>
	</scm>
	<developers>
		<developer>
			<id>moe</id>
			<name>Marcio Endo</name>
			<email>marcio.endo@objectos.com.br</email>
		</developer>
	</developers>
	<modules>
		<module>rio-core</module>
		<module>rio-eto</module>
		<module>rio-kdo</module>
	</modules>
	<properties>
		<br.com.objectos.rio.version>0.4.0</br.com.objectos.rio.version>
		<this.jar.mainClass>br.com.objectos.rio.Rio</this.jar.mainClass>
		<this.jenkins.localDeploy>/var/www/localhost/htdocs/rio</this.jenkins.localDeploy>
		<this.script>rio</this.script>
	</properties>
	<profiles>
		<profile>
			<id>jenkins-local-deploy</id>
			<activation>
				<property>
					<name>BUILD_NUMBER</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>${maven.antrun.version}</version>
						<executions>
							<execution>
								<id>jenkins-local-deploy</id>
								<phase>install</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<target>
										<copy file="${project.build.directory}/${project.artifactId}-${project.version}-jar-with-dependencies.jar" tofile="${this.jenkins.localDeploy}/${project.artifactId}.jar" overwrite="true" />
										<copy file="${basedir}/${this.script}" tofile="${this.jenkins.localDeploy}/${this.script}" overwrite="true" />
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>jenkins-skip-manual</id>
			<activation>
				<property>
					<name>BUILD_NUMBER</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
							<excludedGroups>manual</excludedGroups>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>sonatype-oss-release</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-assembly-plugin</artifactId>
						<configuration>
							<skipAssembly>true</skipAssembly>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.bsc.maven</groupId>
					<artifactId>maven-processor-plugin</artifactId>
					<executions>
						<execution>
							<id>process</id>
							<phase>generate-sources</phase>
							<goals>
								<goal>process</goal>
							</goals>
						</execution>
					</executions>
					<dependencies>
						<dependency>
							<groupId>br.com.objectos</groupId>
							<artifactId>way-auto</artifactId>
							<version>${br.com.objectos.way.version}</version>
						</dependency>
					</dependencies>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<id>jar-with-dependencies</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
						<configuration>
							<archive>
								<manifest>
									<mainClass>${this.jar.mainClass}</mainClass>
								</manifest>
							</archive>
							<descriptorRefs>
								<descriptorRef>jar-with-dependencies</descriptorRef>
							</descriptorRefs>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>br.com.objectos</groupId>
				<artifactId>rio-core</artifactId>
				<version>${br.com.objectos.rio.version}</version>
			</dependency>
			<dependency>
				<groupId>br.com.objectos</groupId>
				<artifactId>rio-core</artifactId>
				<type>test-jar</type>
				<version>${br.com.objectos.rio.version}</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<dependencies>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-base</artifactId>
		</dependency>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-base</artifactId>
			<type>test-jar</type>
		</dependency>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-core</artifactId>
		</dependency>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-core</artifactId>
			<type>test-jar</type>
		</dependency>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-cli</artifactId>
		</dependency>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-etc</artifactId>
		</dependency>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-etc</artifactId>
			<type>test-jar</type>
		</dependency>
		<dependency>
			<groupId>br.com.objectos</groupId>
			<artifactId>way-secshell</artifactId>
		</dependency>
	</dependencies>
</project>
