﻿<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">
  

      <name>cmppclient</name>
      <description>cmppclient is a dajiangnan's cmppclient</description>
      <url>http://www.cmppclient.org/</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>zhangjiangnan</name>
            <email>13401190417@139.com</email>
        </developer>
    </developers>
    
     <scm>
        <connection>scm:git:git@git.oschina.net:dajiangnan/cmppclient.git</connection>
        <developerConnection>scm:git:git@git.oschina.net:dajiangnan/cmppclient.git</developerConnection>
        <url>git@git.oschina.net:dajiangnan/cmppclient.git</url>
    </scm>
    
    
    
    
  <properties>
        <version>1.0.0</version>
        <log4j.version>1.2.17</log4j.version>
  </properties>
  
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.oschina.dajiangnan</groupId>
  <artifactId>cmppclient</artifactId>
  <packaging>jar</packaging>
  <version>${version}</version>
  
  
  <dependencies>
    <dependency>
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
       <version>${log4j.version}</version>
    </dependency>
  </dependencies>
  
  
  
    
   <build>
    <sourceDirectory>src/main/java</sourceDirectory>
    <resources>
        <resource>
            <directory>src/main/resource</directory>
            <!--资源文件不编译-->
            <filtering>false</filtering>
            <targetPath>${project.build.directory}/classes</targetPath>
        </resource>
    </resources>

    <plugins>
        <!-- 设置源文件编码方式 -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.1</version>
            <configuration>
                <defaultLibBundleDir>lib</defaultLibBundleDir>
                <source>1.7</source>
                <target>1.7</target>
                <encoding>UTF-8</encoding>
            </configuration>
        </plugin>
        <!-- 打包jar文件时，配置manifest文件，加入lib包的jar依赖 -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>2.5</version>
        </plugin>
        <!-- 资源文件的编码问题 -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.5</version>
            <configuration>
            <encoding>UTF-8</encoding>
            </configuration>
        </plugin>
        <!-- 编译打包时跳过单元测试-->
        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
           <version>2.17</version>
           <configuration>
           <skip>true</skip>
           </configuration>
         </plugin>
         
         <!-- 源码打包-->
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.2.1</version>
            <executions>
                <execution>
                    <id>attach-sources</id>
                    <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>
                    <encoding>UTF-8</encoding>
                 </configuration>
                 <executions>
                    <execution>
                        <phase>package</phase>
                        <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>
                    <phase>verify</phase>
                    <goals>
                         <goal>sign</goal>
                    </goals>
                </execution>
              </executions>
         </plugin>
         
         <!-- jar包启动类-->
         <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-jar-plugin</artifactId>
             <version>2.5</version>
          </plugin>
    </plugins>
</build>
   
   
   <distributionManagement>
                <snapshotRepository>
                    <id>oss</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                </snapshotRepository>
                <repository>
                    <id>oss</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
      </distributionManagement>
   
  
</project>