<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>net.javaw</groupId>
	<artifactId>mybatis-generator-utils</artifactId>
	<packaging>jar</packaging>
	<version>1.2</version>
	<name>mybatis-generator-utils</name>
	<description>MyBatis自动生成Mapper和XML文件，包含数据库物理分页等工具</description>
	<url>https://github.com/Helios4J/mybatis-generator-utils</url>
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		</license>
	</licenses>
	<developers>
		<developer>
			<name>Helios</name>
			<email>ssy.vip@qq.com</email>
		</developer>
	</developers>
	<scm>
		<connection>scm:git@github.com:Helios4J/mybatis-generator-utils.git</connection>
		<developerConnection>scm:git@github.com:Helios4J/mybatis-generator-utils.git</developerConnection>
		<url>git@github.com:Helios4J/mybatis-generator-utils.git</url>
	</scm>
	<build>
		<finalName>mybatis-generator-utils</finalName>
		<defaultGoal>compile</defaultGoal>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.17</version>
				<configuration>
					<skipTests>true</skipTests>
					<testFailureIgnore>true</testFailureIgnore>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.source>1.6</maven.compiler.source>
		<maven.compiler.target>1.6</maven.compiler.target>
        <sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
        <sonatypeOssDistMgmtStagingUrl>https://oss.sonatype.org/service/local/staging/deploy/maven2/</sonatypeOssDistMgmtStagingUrl>
        
		<mybatis.version>3.2.2</mybatis.version>
		<mybatis-generator-core.version>1.3.2</mybatis-generator-core.version>
	</properties>

	<dependencies>
		<!-- 构建项目时使用，生产坏境可注释 -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
		</dependency>
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis</artifactId>
			<version>${mybatis.version}</version>
		</dependency>
		<dependency>
			<groupId>org.mybatis.generator</groupId>
			<artifactId>mybatis-generator-core</artifactId>
			<version>${mybatis-generator-core.version}</version>
		</dependency>
		<!-- 构建项目时使用，生产坏境可注释 -->
	</dependencies>
	
	<profiles>
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<!-- Source -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.2.1</version>
						<executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>jar-no-fork</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<!-- Javadoc -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>2.9.1</version>
						<executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<!-- GPG -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.5</version>
						<executions>
							<execution>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
			<distributionManagement>
		        <snapshotRepository>
		            <id>sonatype-nexus-snapshots</id>
		            <name>Sonatype Nexus Snapshots</name>
		            <url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
		        </snapshotRepository>
		        <repository>
		            <id>sonatype-nexus-staging</id>
		            <name>Nexus Release Repository</name>
		            <url>${sonatypeOssDistMgmtStagingUrl}</url>
		        </repository>
		    </distributionManagement>
		</profile>
	</profiles>
</project>