<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>

	<parent>
		<groupId>br.com.objectos</groupId>
		<artifactId>parent</artifactId>
		<version>0.3.0</version>
	</parent>

	<groupId>br.com.objectos.sql</groupId>
	<artifactId>parent</artifactId>
	<packaging>pom</packaging>
	<version>0.12.0</version>

	<name>objectos :: sql :: parent</name>
	<description>A lightweight and type-safe Java8 SQL library.</description>
	<url>https://github.com/objectos/sql</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:ssh://git@rio.objectos.com.br:7999/objectos/sql.git</connection>
		<developerConnection>scm:git:ssh://git@rio.objectos.com.br:7999/objectos/sql.git</developerConnection>
		<url>https://github.com/objectos/sql</url>
		<tag>HEAD</tag>
	</scm>

	<issueManagement>
		<system>GitHub Issues</system>
		<url>http://github.com/objectos/sql/issues</url>
	</issueManagement>

	<developers>
		<developer>
			<id>moe</id>
			<name>Marcio Endo</name>
			<email>marcio.endo@objectos.com.br</email>
		</developer>
	</developers>

	<organization>
		<name>Objectos Software LTDA</name>
		<url>http://www.objectos.com.br</url>
	</organization>

	<modules>
		<module>api</module>
		<module>boot</module>
		<module>legacy</module>
		<module>legacy-core</module>
		<module>legacy-legacy</module>
	</modules>

	<profiles>
		<profile>
			<id>travis</id>
			<activation>
				<property>
					<name>env.TRAVIS</name>
				</property>
			</activation>
			<properties>
				<jdbc.port>3306</jdbc.port>
				<jdbc.user>root</jdbc.user>
				<jdbc.password />
			</properties>
		</profile>
	</profiles>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<configuration>
						<systemPropertyVariables>
							<jdbc.server>${jdbc.server}</jdbc.server>
							<jdbc.port>${jdbc.port}</jdbc.port>
							<jdbc.user>${jdbc.user}</jdbc.user>
							<jdbc.password>${jdbc.password}</jdbc.password>
						</systemPropertyVariables>
					</configuration>
				</plugin>
				<plugin>
					<groupId>br.com.objectos.db</groupId>
					<artifactId>bootstrap-maven-plugin</artifactId>
					<version>0.3.0</version>
					<configuration>
						<vendor>MYSQL</vendor>
						<server>${jdbc.server}</server>
						<port>${jdbc.port}</port>
						<db>${jdbc.db}</db>
						<user>${jdbc.user}</user>
						<password>${jdbc.password}</password>
						<parameters>
							<useSSL>false</useSSL>
						</parameters>
					</configuration>
					<dependencies>
						<dependency>
							<groupId>br.com.objectos.db</groupId>
							<artifactId>mysql</artifactId>
							<version>0.3.0</version>
						</dependency>
						<dependency>
							<groupId>mysql</groupId>
							<artifactId>mysql-connector-java</artifactId>
							<version>5.1.38</version>
						</dependency>
					</dependencies>
				</plugin>
				<!--This plugin's configuration is used to store Eclipse m2e settings 
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											br.com.objectos.db
										</groupId>
										<artifactId>
											bootstrap-maven-plugin
										</artifactId>
										<versionRange>
											[0.1.0-SNAPSHOT,)
										</versionRange>
										<goals>
											<goal>create</goal>
											<goal>load</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

</project>
