<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>com.github.3cpj</groupId>
	<artifactId>cpj-common</artifactId>
	<packaging>jar</packaging>
	<version>1.5.1</version>
	<name>cpj-common</name>
	<description>臭皮匠通用工具集</description>
	<url>https://github.com/3cpj/common</url>
	
	<developers>
		<developer>
			<id>yonghuan</id>
			<name>雍欢</name>
			<email>2232911026@qq.com</email>
		</developer>
	</developers>
	<licenses>
		<license>
			<name>Apache 2</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
			<comments>A business-friendly OSS license</comments>
		</license>
	</licenses>
	
	<distributionManagement>
	  <snapshotRepository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
	  </snapshotRepository>
	  <repository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
	  </repository>
	</distributionManagement>
	
	<scm>
      <connection>
         scm:git:https://github.com/3cpj/common.git
      </connection>
      <developerConnection>
         scm:git:https://github.com/3cpj/common.git
      </developerConnection>
      	<url>https://github.com/3cpj/common</url>
     	<tag>v1.5.0</tag>
	  </scm>
	  
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.17</version>
		</dependency>
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>1.4</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context-support</artifactId>
			<version>4.2.4.RELEASE</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
	<profiles>
	   <profile> 
	    <id>release</id>
	    <build>
	        <plugins>
	            <plugin>
	               <groupId>org.sonatype.plugins</groupId>
	               <artifactId>nexus-staging-maven-plugin</artifactId>
	               <version>1.6.3</version>
	               <extensions>true</extensions>
	               <configuration>
	                 <serverId>ossrh</serverId>
	                 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
	                 <autoReleaseAfterClose>true</autoReleaseAfterClose>
	               </configuration>
	             </plugin>
	             <plugin>
	                 <groupId>org.apache.maven.plugins</groupId>
	                 <artifactId>maven-release-plugin</artifactId>
	                 <version>2.5</version>
	                 <configuration>
	                   <autoVersionSubmodules>true</autoVersionSubmodules>
	                   <useReleaseProfile>false</useReleaseProfile>
	                   <releaseProfiles>release</releaseProfiles>
	                   <goals>deploy</goals>
	                 </configuration>
	            </plugin>
	            <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-compiler-plugin</artifactId>
	                <version>3.0</version>
	                <configuration>
	                    <source>1.6</source>
	                    <target>1.6</target>
	                </configuration>
	            </plugin>
	            <plugin>
	               <groupId>org.apache.maven.plugins</groupId>
	               <artifactId>maven-gpg-plugin</artifactId>
	               <version>1.5</version>
	               <executions>
	                 <execution>
	                   <id>sign-artifacts</id>
	                   <phase>verify</phase>
	                   <goals>
	                     <goal>sign</goal>
	                   </goals>
	                 </execution>
	               </executions>
	            </plugin>
	           <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-source-plugin</artifactId>
	                <version>2.2.1</version>
	                <executions>
	                    <execution>
	                        <id>attach-sources</id>
	                        <goals>
	                            <goal>jar-no-fork</goal>
	                        </goals>
	                    </execution>
	                </executions>
	            </plugin> 
	            <plugin>
	                <groupId>org.apache.maven.plugins</groupId>
	                <artifactId>maven-javadoc-plugin</artifactId>
	                <version>2.10.4</version>
	                <executions>
	                    <execution>
	                        <id>attach-javadocs</id>
	                        <goals>
	                            <goal>jar</goal>
	                        </goals>
	                        <configuration>
	                        	<source>1.7</source>
	                        </configuration>
	                    </execution>
	                </executions>
	            </plugin>
	         </plugins>
	    </build>
	  </profile>
	</profiles>
	<build>
		<finalName>cpj-common</finalName>
		<defaultGoal>compile</defaultGoal>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.4</version>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
					<encoding>utf8</encoding>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>3.0.1</version>
				<configuration>
					<attach>true</attach>
				</configuration>
				<executions>
					<execution>
						<phase>compile</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.10.4</version>
				<configuration>
					<aggregate>true</aggregate>
					<encoding>utf8</encoding>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			
			<plugin>
		      <groupId>org.apache.maven.plugins</groupId>
		      <artifactId>maven-gpg-plugin</artifactId>
		      <version>1.5</version>
		      <executions>
		        <execution>
		          <id>sign-artifacts</id>
		          <phase>verify</phase>
		          <goals>
		            <goal>sign</goal>
		          </goals>
		        </execution>
		      </executions>
	    	</plugin>
		</plugins>
	</build>
</project>
