<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>
  
  <!-- 1. OSS parent -->
	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>9</version>
	</parent>
	
	
	<!-- 2. OSS infomation -->
	 <groupId>cn.easyproject</groupId>
 	 <artifactId>easycommondao</artifactId>
 	 <version>1.5.1-RELEASE</version>
 	 <packaging>pom</packaging>
 	 <description>
  	<![CDATA[
	  Java ORM Common DAO(Data Access Object), eliminate the interface and implements of DAO.
  	]]>
  </description>
	<url>http://www.easyproject.cn/easycommondao</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>
	<scm>
		<url>https://github.com/ushelp/EasyCommonDAO.git</url>
		<connection>scm:git:ssh://github.com/ushelp/EasyCommonDAO.git</connection>
		<tag>easycommondao</tag>
	</scm>
	<developers>
		<developer>
			<name>Ray Yam</name>
			<email>inthinkcolor@gmail.com</email>
			<url>http://easyproject.cn</url>
			<timezone>+8</timezone>
		</developer>
	</developers>


	<!-- 3. profiles -->
	<profiles>
		<!-- 使用了 Maven 的 profile 功能，只有在 release 的时候，创建源码包、创建文档包、使用 GPG 进行数字签名。 -->
		<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>
						<configuration>
							<charset>UTF-8</charset>
							<encoding>UTF-8</encoding>
							<docencoding>UTF-8</docencoding>
						</configuration>
						<!-- <executions>
							<execution>
								<phase>package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions> -->
						<executions>  
					        <execution>  
					            <id>attach-javadocs</id>  
					            <goals>  
					                <goal>jar</goal>  
					            </goals>  
					            <configuration>  
					                <additionalparam>-Xdoclint:none</additionalparam>  
					            </configuration>  
					        </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>
		</profile>
	</profiles>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>UTF-8</encoding>
					<!-- <compilerArguments>
						<verbose />
						<bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
					</compilerArguments> -->
				</configuration>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
			 <!-- 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>org.apache.maven.plugins</groupId>  
                                    <artifactId>maven-enforcer-plugin</artifactId>  
                                    <versionRange>[1.0.0,)</versionRange>  
                                    <goals>  
                                        <goal>enforce</goal>  
                                    </goals>  
                                </pluginExecutionFilter>  
                                <action>  
                                    <ignore />  
                                </action>  
                            </pluginExecution>  
                        </pluginExecutions>  
                    </lifecycleMappingMetadata>  
                </configuration>  
            </plugin>  
            <plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
			</plugins>
		</pluginManagement>
	</build>
  
 
	<modules>
		<module>easycommondao-hibernate3</module>
		<module>easycommondao-hibernate4</module>
		<module>easycommondao-hibernate5</module>
		<module>easycommondao-jpa-hibernate3</module>
		<module>easycommondao-jpa-hibernate4</module>
		<module>easycommondao-jpa-hibernate5</module>
		<module>easycommondao-jpa-eclipselink</module>
	</modules>
</project>