﻿<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>wx</name>
      <description>wx is a dajiangnan's wx</description>
      <url>http://www.wx.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/wx.git</connection>
        <developerConnection>scm:git:git@git.oschina.net:dajiangnan/wx.git</developerConnection>
        <url>git@git.oschina.net:dajiangnan/wx.git</url>
    </scm>
    
    
    
    
  <properties>
        <version>1.0.0</version>
        <commonUtil.version>1.0.10</commonUtil.version>
        <javax.servlet-api.version>3.0.1</javax.servlet-api.version>
  </properties>
  
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.oschina.dajiangnan</groupId>
  <artifactId>wx</artifactId>
  <packaging>jar</packaging>
  <version>${version}</version>
  
  <dependencies>
    <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>javax.servlet-api</artifactId>
          <version>${javax.servlet-api.version}</version>
          <scope>provided</scope>
        </dependency>
        
        <dependency>
	        <groupId>com.alibaba</groupId>
	        <artifactId>fastjson</artifactId>
	        <version>1.2.5</version>
        </dependency>
        <dependency>  
           <groupId>org.slf4j</groupId>  
           <artifactId>slf4j-log4j12</artifactId>  
           <version>1.7.2</version>  
        </dependency>
        <dependency>
	       <groupId>com.thoughtworks.xstream</groupId>
	       <artifactId>xstream</artifactId>
	       <version>1.4.2</version>
        </dependency>
        <dependency>
	         <groupId>org.apache.httpcomponents</groupId>
	         <artifactId>httpclient</artifactId>
	         <version>4.3</version>
        </dependency>
        <dependency>
            <groupId>net.oschina.dajiangnan</groupId>  
            <artifactId>commonUtil</artifactId>  
            <version>${commonUtil.version}</version>  
        </dependency>
        <dependency>
	        <groupId>org.apache.commons</groupId>
	        <artifactId>commons-lang3</artifactId>
	        <version>3.3</version>
        </dependency>
        <dependency>
	       <groupId>commons-io</groupId>
	       <artifactId>commons-io</artifactId>
	       <version>2.4</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-gpg-plugin</artifactId>
              <version>1.5</version>
              <executions>
                <execution>
                    <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>
                        <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>
    </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>