Home | History | Annotate | Download | only in 4.3.2
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3    ====================================================================
      4    Licensed to the Apache Software Foundation (ASF) under one
      5    or more contributor license agreements.  See the NOTICE file
      6    distributed with this work for additional information
      7    regarding copyright ownership.  The ASF licenses this file
      8    to you under the Apache License, Version 2.0 (the
      9    "License"); you may not use this file except in compliance
     10    with the License.  You may obtain a copy of the License at
     11 
     12      http://www.apache.org/licenses/LICENSE-2.0
     13 
     14    Unless required by applicable law or agreed to in writing,
     15    software distributed under the License is distributed on an
     16    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     17    KIND, either express or implied.  See the License for the
     18    specific language governing permissions and limitations
     19    under the License.
     20    ====================================================================
     21 
     22    This software consists of voluntary contributions made by many
     23    individuals on behalf of the Apache Software Foundation.  For more
     24    information on the Apache Software Foundation, please see
     25    <http://www.apache.org />.
     26  --><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">
     27   <parent>
     28     <artifactId>project</artifactId>
     29     <groupId>org.apache.httpcomponents</groupId>
     30     <version>7</version>
     31     <relativePath>../project/pom.xml</relativePath>
     32   </parent>
     33   <modelVersion>4.0.0</modelVersion>
     34   <artifactId>httpcomponents-client</artifactId>
     35   <name>HttpComponents Client</name>
     36   <version>4.3.2</version>
     37   <description>Apache HttpComponents Client is a library of components for building client side HTTP services</description>
     38   <url>http://hc.apache.org/httpcomponents-client</url>
     39   <inceptionYear>1999</inceptionYear>
     40   <packaging>pom</packaging>
     41 
     42   <organization>
     43     <name>The Apache Software Foundation</name>
     44     <url>http://www.apache.org/</url>
     45   </organization>
     46 
     47   <licenses>
     48     <license>
     49       <name>Apache License, Version 2.0</name>
     50       <url>LICENSE.txt</url>
     51       <distribution>repo</distribution>
     52     </license>
     53   </licenses>
     54 
     55   <issueManagement>
     56     <system>Jira</system>
     57     <url>http://issues.apache.org/jira/browse/HTTPCLIENT</url>
     58   </issueManagement>
     59 
     60   <scm>
     61     <connection>scm:svn:https://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.3.2</connection>
     62     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.3.2</developerConnection>
     63     <url>https://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.3.2</url>
     64   </scm>
     65 
     66   <properties>
     67     <httpcore.version>4.3.1</httpcore.version>
     68     <commons-logging.version>1.1.3</commons-logging.version>
     69     <commons-codec.version>1.6</commons-codec.version>
     70     <ehcache.version>2.2.0</ehcache.version>
     71     <memcached.version>2.6</memcached.version>
     72     <slf4j.version>1.5.11</slf4j.version>
     73     <junit.version>4.9</junit.version>
     74     <easymock.version>2.5.2</easymock.version>
     75     <mockito.version>1.8.5</mockito.version>
     76     <jna.version>4.0.0</jna.version>
     77     <hc.stylecheck.version>1</hc.stylecheck.version>
     78     <api.comparison.version>4.3</api.comparison.version>
     79   </properties>
     80 
     81   <repositories>
     82     <repository>
     83       <id>spy</id>
     84       <name>Spy Repository</name>
     85       <layout>default</layout>
     86       <url>http://files.couchbase.com/maven2/</url>
     87       <snapshots>
     88         <enabled>false</enabled>
     89       </snapshots>
     90     </repository>
     91   </repositories>
     92 
     93   <dependencyManagement>
     94     <dependencies>
     95       <dependency>
     96         <groupId>org.apache.httpcomponents</groupId>
     97         <artifactId>httpcore</artifactId>
     98         <version>${httpcore.version}</version>
     99       </dependency>
    100       <dependency>
    101         <groupId>commons-logging</groupId>
    102         <artifactId>commons-logging</artifactId>
    103         <version>${commons-logging.version}</version>
    104       </dependency>
    105       <dependency>
    106         <groupId>commons-codec</groupId>
    107         <artifactId>commons-codec</artifactId>
    108         <version>${commons-codec.version}</version>
    109       </dependency>
    110       <dependency>
    111         <groupId>net.sf.ehcache</groupId>
    112         <artifactId>ehcache-core</artifactId>
    113         <version>${ehcache.version}</version>
    114       </dependency>
    115       <dependency>
    116         <groupId>org.slf4j</groupId>
    117         <artifactId>slf4j-jcl</artifactId>
    118         <version>${slf4j.version}</version>
    119       </dependency>
    120       <dependency>
    121         <groupId>spy</groupId>
    122         <artifactId>spymemcached</artifactId>
    123         <version>${memcached.version}</version>
    124       </dependency>
    125       <dependency>
    126         <groupId>net.java.dev.jna</groupId>
    127         <artifactId>jna</artifactId>
    128         <version>${jna.version}</version>
    129       </dependency>
    130       <dependency>
    131         <groupId>net.java.dev.jna</groupId>
    132         <artifactId>jna-platform</artifactId>
    133         <version>${jna.version}</version>
    134       </dependency>
    135       <dependency>
    136         <groupId>junit</groupId>
    137         <artifactId>junit</artifactId>
    138         <version>${junit.version}</version>
    139         <scope>test</scope>
    140       </dependency>
    141       <dependency>
    142         <groupId>org.mockito</groupId>
    143         <artifactId>mockito-core</artifactId>
    144         <version>${mockito.version}</version>
    145         <scope>test</scope>
    146       </dependency>
    147       <dependency>
    148         <groupId>org.easymock</groupId>
    149         <artifactId>easymock</artifactId>
    150         <version>${easymock.version}</version>
    151         <scope>test</scope>
    152       </dependency>
    153       <dependency>
    154         <groupId>org.easymock</groupId>
    155         <artifactId>easymockclassextension</artifactId>
    156         <version>${easymock.version}</version>
    157         <scope>test</scope>
    158       </dependency>
    159     </dependencies>
    160   </dependencyManagement>
    161 
    162   <modules>
    163     <module>httpclient</module>
    164     <module>httpmime</module>
    165     <module>fluent-hc</module>
    166     <module>httpclient-cache</module>
    167     <!--module>httpclient-win</module-->
    168     <module>httpclient-osgi</module>
    169   </modules>
    170 
    171   <build>
    172     <plugins>
    173       <plugin>
    174         <artifactId>maven-jar-plugin</artifactId>
    175         <configuration>
    176           <archive>
    177             <manifestEntries>
    178               <Specification-Title>HttpComponents ${project.name}</Specification-Title>
    179               <Specification-Version>${project.version}</Specification-Version>
    180               <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
    181               <Implementation-Title>HttpComponents ${project.name}</Implementation-Title>
    182               <Implementation-Version>${project.version}</Implementation-Version>
    183               <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
    184               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    185               <url>${project.url}</url>
    186             </manifestEntries>
    187           </archive>
    188         </configuration>
    189       </plugin>
    190       <plugin>
    191         <artifactId>maven-source-plugin</artifactId>
    192         <executions>
    193           <execution>
    194             <id>attach-sources</id>
    195             <goals>
    196               <goal>jar</goal>
    197             </goals>
    198           </execution>
    199         </executions>
    200         <configuration>
    201           <archive>
    202             <!-- Ensure source jars have full manifest entries (note: defaults aren't suitable) -->
    203             <manifestEntries>
    204               <Specification-Title>HttpComponents ${project.name}</Specification-Title>
    205               <Specification-Version>${project.version}</Specification-Version>
    206               <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
    207               <Implementation-Title>HttpComponents ${project.name}</Implementation-Title>
    208               <Implementation-Version>${project.version}</Implementation-Version>
    209               <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
    210               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    211             </manifestEntries>
    212           </archive>
    213         </configuration>
    214       </plugin>
    215       <plugin>
    216         <artifactId>maven-javadoc-plugin</artifactId>
    217         <executions>
    218           <execution>
    219             <id>attach-javadocs</id>
    220             <goals>
    221               <goal>jar</goal>
    222             </goals>
    223           </execution>
    224         </executions>
    225         <configuration>
    226           <!-- reduce console output. Can override with -Dquiet=false -->
    227           <quiet>true</quiet>
    228           <source>${maven.compiler.source}</source>
    229           <links>
    230             <link>http://download.oracle.com/javase/1.5.0/docs/api/</link>
    231             <link>http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/</link>
    232           </links>
    233         </configuration>
    234       </plugin>
    235       <plugin>
    236         <groupId>com.agilejava.docbkx</groupId>
    237         <artifactId>docbkx-maven-plugin</artifactId>
    238         <dependencies>
    239           <dependency>
    240             <groupId>org.docbook</groupId>
    241             <artifactId>docbook-xml</artifactId>
    242             <version>4.4</version>
    243             <scope>runtime</scope>
    244           </dependency>
    245         </dependencies>
    246         <executions>
    247           <execution>
    248             <id>tutorial-site</id>
    249             <goals>
    250               <goal>generate-html</goal>
    251               <goal>generate-pdf</goal>
    252             </goals>
    253             <phase>pre-site</phase>
    254           </execution>
    255         </executions>        
    256         <configuration>
    257           <includes>index.xml</includes>
    258           <chunkedOutput>true</chunkedOutput>
    259           <xincludeSupported>true</xincludeSupported>
    260           <foCustomization>src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
    261           <htmlCustomization>src/docbkx/resources/xsl/html_chunk.xsl</htmlCustomization>
    262           <htmlStylesheet>css/hc-tutorial.css</htmlStylesheet>
    263           <entities>
    264             <entity>
    265               <name>version</name>
    266               <value>${project.version}</value>
    267             </entity>
    268           </entities>
    269           <postProcess>
    270             <copy todir="target/site/tutorial/html" failonerror="false">
    271               <fileset dir="target/docbkx/html/index">
    272                 <include name="**/*.html" />
    273               </fileset>
    274             </copy>
    275             <copy todir="target/site/tutorial/html" failonerror="false">
    276               <fileset dir="src/docbkx/resources">
    277                 <include name="**/*.css" />
    278                 <include name="**/*.png" />
    279                 <include name="**/*.gif" />
    280                 <include name="**/*.jpg" />
    281               </fileset>
    282             </copy>
    283             <copy file="target/docbkx/pdf/index.pdf" tofile="target/site/tutorial/pdf/httpclient-tutorial.pdf" failonerror="false" />
    284           </postProcess>
    285         </configuration>
    286       </plugin>
    287         <plugin>
    288           <artifactId>maven-resources-plugin</artifactId>
    289           <executions>
    290             <execution>
    291               <id>copy-resources</id>
    292               <phase>pre-site</phase>
    293               <goals>
    294                 <goal>copy-resources</goal>
    295               </goals>
    296               <configuration>
    297                 <outputDirectory>${basedir}/target/site/examples</outputDirectory>
    298                 <resources>
    299                   <resource>
    300                     <directory>src/examples</directory>
    301                     <filtering>false</filtering>
    302                   </resource>
    303                 </resources>
    304               </configuration>
    305             </execution>
    306           </executions>
    307         </plugin>
    308       <plugin>
    309         <groupId>org.codehaus.mojo</groupId>
    310         <artifactId>clirr-maven-plugin</artifactId>
    311         <configuration>
    312           <comparisonVersion>${api.comparison.version}</comparisonVersion>
    313         </configuration>
    314       </plugin>
    315       <plugin>
    316         <groupId>org.apache.maven.plugins</groupId>
    317         <artifactId>maven-checkstyle-plugin</artifactId>
    318         <version>2.9.1</version>
    319         <dependencies>
    320           <dependency>
    321             <groupId>org.apache.httpcomponents</groupId>
    322             <artifactId>hc-stylecheck</artifactId>
    323             <version>${hc.stylecheck.version}</version>
    324           </dependency>
    325         </dependencies>
    326         <configuration>
    327           <encoding>UTF-8</encoding>
    328         </configuration>
    329         <executions>
    330           <execution>
    331             <id>validate-main</id>
    332             <phase>validate</phase>
    333             <configuration>
    334               <configLocation>hc-stylecheck/default.xml</configLocation>
    335               <headerLocation>hc-stylecheck/asl2.header</headerLocation>
    336               <consoleOutput>true</consoleOutput>
    337               <failsOnError>true</failsOnError>
    338               <linkXRef>false</linkXRef>
    339               <sourceDirectory>${basedir}/src/main</sourceDirectory>
    340             </configuration>
    341             <goals>
    342               <goal>checkstyle</goal>
    343             </goals>
    344           </execution>
    345           <execution>
    346             <id>validate-test</id>
    347             <phase>validate</phase>
    348             <configuration>
    349               <configLocation>hc-stylecheck/default.xml</configLocation>
    350               <headerLocation>hc-stylecheck/asl2.header</headerLocation>
    351               <consoleOutput>true</consoleOutput>
    352               <failsOnError>true</failsOnError>
    353               <linkXRef>false</linkXRef>
    354               <sourceDirectory>${basedir}/src/test</sourceDirectory>
    355             </configuration>
    356             <goals>
    357               <goal>checkstyle</goal>
    358             </goals>
    359           </execution>
    360           <execution>
    361             <id>validate-examples</id>
    362             <phase>validate</phase>
    363             <configuration>
    364               <configLocation>hc-stylecheck/minimal.xml</configLocation>
    365               <headerLocation>hc-stylecheck/asl2.header</headerLocation>
    366               <consoleOutput>true</consoleOutput>
    367               <failsOnError>true</failsOnError>
    368               <linkXRef>false</linkXRef>
    369               <sourceDirectory>${basedir}/src/examples</sourceDirectory>
    370             </configuration>
    371             <goals>
    372               <goal>checkstyle</goal>
    373             </goals>
    374           </execution>
    375         </executions>
    376       </plugin>
    377       <plugin>
    378         <groupId>org.codehaus.mojo</groupId>
    379         <artifactId>clirr-maven-plugin</artifactId>
    380         <version>${hc.clirr.version}</version>
    381         <configuration>
    382           <comparisonVersion>${api.comparison.version}</comparisonVersion>
    383         </configuration>
    384       </plugin>
    385     </plugins>
    386   </build>
    387 
    388   <reporting>
    389     <plugins>
    390 
    391        <plugin>
    392          <artifactId>maven-project-info-reports-plugin</artifactId>
    393          <version>${hc.project-info.version}</version>
    394          <inherited>false</inherited>
    395          <reportSets>
    396            <reportSet>
    397              <reports>
    398                <report>dependency-management</report>
    399                <report>issue-tracking</report>
    400                <report>license</report>
    401                <report>scm</report>
    402                <report>summary</report>
    403              </reports>
    404            </reportSet>
    405          </reportSets>
    406       </plugin>
    407 
    408       <plugin>
    409         <groupId>org.codehaus.mojo</groupId>
    410         <artifactId>clirr-maven-plugin</artifactId>
    411          <version>${hc.clirr.version}</version>
    412         <configuration>
    413           <comparisonVersion>${api.comparison.version}</comparisonVersion>
    414         </configuration>
    415       </plugin>
    416 
    417     </plugins>
    418   </reporting>
    419 
    420 </project>
    421