Home | History | Annotate | Download | only in 4.5.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>Apache HttpComponents Client</name>
     36   <version>4.5.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-ga/</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>http://www.apache.org/licenses/LICENSE-2.0.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.5.2</connection>
     62     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.5.2</developerConnection>
     63     <url>https://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.5.2</url>
     64   </scm>
     65 
     66   <properties>
     67     <maven.compiler.source>1.6</maven.compiler.source>
     68     <maven.compiler.target>1.6</maven.compiler.target>
     69     <httpcore.version>4.4.4</httpcore.version>
     70     <commons-logging.version>1.2</commons-logging.version>
     71     <commons-codec.version>1.9</commons-codec.version>
     72     <ehcache.version>2.6.9</ehcache.version>
     73     <memcached.version>2.11.4</memcached.version>
     74     <slf4j.version>1.7.7</slf4j.version>
     75     <junit.version>4.11</junit.version>
     76     <easymock.version>2.5.2</easymock.version>
     77     <mockito.version>1.8.5</mockito.version>
     78     <jna.version>4.1.0</jna.version>
     79     <hc.stylecheck.version>1</hc.stylecheck.version>
     80     <api.comparison.version>4.4</api.comparison.version>
     81   </properties>
     82 
     83   <dependencyManagement>
     84     <dependencies>
     85       <dependency>
     86         <groupId>org.apache.httpcomponents</groupId>
     87         <artifactId>httpcore</artifactId>
     88         <version>${httpcore.version}</version>
     89       </dependency>
     90       <dependency>
     91         <groupId>commons-logging</groupId>
     92         <artifactId>commons-logging</artifactId>
     93         <version>${commons-logging.version}</version>
     94       </dependency>
     95       <dependency>
     96         <groupId>commons-codec</groupId>
     97         <artifactId>commons-codec</artifactId>
     98         <version>${commons-codec.version}</version>
     99       </dependency>
    100       <dependency>
    101         <groupId>net.sf.ehcache</groupId>
    102         <artifactId>ehcache-core</artifactId>
    103         <version>${ehcache.version}</version>
    104       </dependency>
    105       <dependency>
    106         <groupId>org.slf4j</groupId>
    107         <artifactId>slf4j-jcl</artifactId>
    108         <version>${slf4j.version}</version>
    109       </dependency>
    110       <dependency>
    111         <groupId>net.spy</groupId>
    112         <artifactId>spymemcached</artifactId>
    113         <version>${memcached.version}</version>
    114       </dependency>
    115       <dependency>
    116         <groupId>net.java.dev.jna</groupId>
    117         <artifactId>jna</artifactId>
    118         <version>${jna.version}</version>
    119       </dependency>
    120       <dependency>
    121         <groupId>net.java.dev.jna</groupId>
    122         <artifactId>jna-platform</artifactId>
    123         <version>${jna.version}</version>
    124       </dependency>
    125       <dependency>
    126         <groupId>junit</groupId>
    127         <artifactId>junit</artifactId>
    128         <version>${junit.version}</version>
    129         <scope>test</scope>
    130       </dependency>
    131       <dependency>
    132         <groupId>org.mockito</groupId>
    133         <artifactId>mockito-core</artifactId>
    134         <version>${mockito.version}</version>
    135         <scope>test</scope>
    136       </dependency>
    137       <dependency>
    138         <groupId>org.easymock</groupId>
    139         <artifactId>easymock</artifactId>
    140         <version>${easymock.version}</version>
    141         <scope>test</scope>
    142       </dependency>
    143       <dependency>
    144         <groupId>org.easymock</groupId>
    145         <artifactId>easymockclassextension</artifactId>
    146         <version>${easymock.version}</version>
    147         <scope>test</scope>
    148       </dependency>
    149     </dependencies>
    150   </dependencyManagement>
    151 
    152   <modules>
    153     <module>httpclient</module>
    154     <module>httpmime</module>
    155     <module>fluent-hc</module>
    156     <module>httpclient-cache</module>
    157     <module>httpclient-win</module>
    158     <module>httpclient-osgi</module>
    159   </modules>
    160 
    161   <build>
    162     <plugins>
    163       <plugin>
    164         <artifactId>maven-jar-plugin</artifactId>
    165         <configuration>
    166           <archive>
    167             <manifestEntries>
    168               <Specification-Title>HttpComponents ${project.name}</Specification-Title>
    169               <Specification-Version>${project.version}</Specification-Version>
    170               <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
    171               <Implementation-Title>HttpComponents ${project.name}</Implementation-Title>
    172               <Implementation-Version>${project.version}</Implementation-Version>
    173               <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
    174               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    175               <url>${project.url}</url>
    176             </manifestEntries>
    177           </archive>
    178         </configuration>
    179       </plugin>
    180       <plugin>
    181         <artifactId>maven-source-plugin</artifactId>
    182         <executions>
    183           <execution>
    184             <id>attach-sources</id>
    185             <goals>
    186               <goal>jar</goal>
    187             </goals>
    188           </execution>
    189         </executions>
    190         <configuration>
    191           <archive>
    192             <!-- Ensure source jars have full manifest entries (note: defaults aren't suitable) -->
    193             <manifestEntries>
    194               <Specification-Title>HttpComponents ${project.name}</Specification-Title>
    195               <Specification-Version>${project.version}</Specification-Version>
    196               <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
    197               <Implementation-Title>HttpComponents ${project.name}</Implementation-Title>
    198               <Implementation-Version>${project.version}</Implementation-Version>
    199               <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
    200               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    201             </manifestEntries>
    202           </archive>
    203         </configuration>
    204       </plugin>
    205       <plugin>
    206         <artifactId>maven-javadoc-plugin</artifactId>
    207         <executions>
    208           <execution>
    209             <id>attach-javadocs</id>
    210             <goals>
    211               <goal>jar</goal>
    212             </goals>
    213           </execution>
    214         </executions>
    215         <configuration>
    216           <!-- reduce console output. Can override with -Dquiet=false -->
    217           <quiet>true</quiet>
    218           <source>${maven.compiler.source}</source>
    219           <links>
    220             <link>http://docs.oracle.com/javase/6/docs/api/</link>
    221             <link>http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/</link>
    222           </links>
    223         </configuration>
    224       </plugin>
    225       <plugin>
    226         <groupId>com.agilejava.docbkx</groupId>
    227         <artifactId>docbkx-maven-plugin</artifactId>
    228         <dependencies>
    229           <dependency>
    230             <groupId>org.docbook</groupId>
    231             <artifactId>docbook-xml</artifactId>
    232             <version>4.4</version>
    233             <scope>runtime</scope>
    234           </dependency>
    235         </dependencies>
    236         <executions>
    237           <execution>
    238             <id>tutorial-site</id>
    239             <goals>
    240               <goal>generate-html</goal>
    241               <goal>generate-pdf</goal>
    242             </goals>
    243             <phase>pre-site</phase>
    244           </execution>
    245         </executions>
    246         <configuration>
    247           <includes>index.xml</includes>
    248           <chunkedOutput>true</chunkedOutput>
    249           <xincludeSupported>true</xincludeSupported>
    250           <foCustomization>src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
    251           <htmlCustomization>src/docbkx/resources/xsl/html_chunk.xsl</htmlCustomization>
    252           <htmlStylesheet>css/hc-tutorial.css</htmlStylesheet>
    253           <entities>
    254             <entity>
    255               <name>version</name>
    256               <value>${project.version}</value>
    257             </entity>
    258           </entities>
    259           <postProcess>
    260             <copy todir="target/site/tutorial/html" failonerror="false">
    261               <fileset dir="target/docbkx/html/index">
    262                 <include name="**/*.html" />
    263               </fileset>
    264             </copy>
    265             <copy todir="target/site/tutorial/html" failonerror="false">
    266               <fileset dir="src/docbkx/resources">
    267                 <include name="**/*.css" />
    268                 <include name="**/*.png" />
    269                 <include name="**/*.gif" />
    270                 <include name="**/*.jpg" />
    271               </fileset>
    272             </copy>
    273             <copy file="target/docbkx/pdf/index.pdf" tofile="target/site/tutorial/pdf/httpclient-tutorial.pdf" failonerror="false" />
    274           </postProcess>
    275         </configuration>
    276       </plugin>
    277         <plugin>
    278           <artifactId>maven-resources-plugin</artifactId>
    279           <executions>
    280             <execution>
    281               <id>copy-resources</id>
    282               <phase>pre-site</phase>
    283               <goals>
    284                 <goal>copy-resources</goal>
    285               </goals>
    286               <configuration>
    287                 <outputDirectory>${basedir}/target/site/examples</outputDirectory>
    288                 <resources>
    289                   <resource>
    290                     <directory>src/examples</directory>
    291                     <filtering>false</filtering>
    292                   </resource>
    293                 </resources>
    294               </configuration>
    295             </execution>
    296           </executions>
    297         </plugin>
    298       <plugin>
    299         <groupId>org.apache.maven.plugins</groupId>
    300         <artifactId>maven-checkstyle-plugin</artifactId>
    301         <version>2.9.1</version>
    302         <dependencies>
    303           <dependency>
    304             <groupId>org.apache.httpcomponents</groupId>
    305             <artifactId>hc-stylecheck</artifactId>
    306             <version>${hc.stylecheck.version}</version>
    307           </dependency>
    308         </dependencies>
    309         <configuration>
    310           <encoding>UTF-8</encoding>
    311         </configuration>
    312         <executions>
    313           <execution>
    314             <id>validate-main</id>
    315             <phase>validate</phase>
    316             <configuration>
    317               <configLocation>hc-stylecheck/default.xml</configLocation>
    318               <headerLocation>hc-stylecheck/asl2.header</headerLocation>
    319               <consoleOutput>true</consoleOutput>
    320               <failsOnError>true</failsOnError>
    321               <linkXRef>false</linkXRef>
    322               <sourceDirectory>${basedir}/src/main</sourceDirectory>
    323             </configuration>
    324             <goals>
    325               <goal>checkstyle</goal>
    326             </goals>
    327           </execution>
    328           <execution>
    329             <id>validate-test</id>
    330             <phase>validate</phase>
    331             <configuration>
    332               <configLocation>hc-stylecheck/default.xml</configLocation>
    333               <headerLocation>hc-stylecheck/asl2.header</headerLocation>
    334               <consoleOutput>true</consoleOutput>
    335               <failsOnError>true</failsOnError>
    336               <linkXRef>false</linkXRef>
    337               <sourceDirectory>${basedir}/src/test</sourceDirectory>
    338             </configuration>
    339             <goals>
    340               <goal>checkstyle</goal>
    341             </goals>
    342           </execution>
    343           <execution>
    344             <id>validate-examples</id>
    345             <phase>validate</phase>
    346             <configuration>
    347               <configLocation>hc-stylecheck/minimal.xml</configLocation>
    348               <headerLocation>hc-stylecheck/asl2.header</headerLocation>
    349               <consoleOutput>true</consoleOutput>
    350               <failsOnError>true</failsOnError>
    351               <linkXRef>false</linkXRef>
    352               <sourceDirectory>${basedir}/src/examples</sourceDirectory>
    353             </configuration>
    354             <goals>
    355               <goal>checkstyle</goal>
    356             </goals>
    357           </execution>
    358         </executions>
    359       </plugin>
    360       <plugin>
    361         <groupId>org.codehaus.mojo</groupId>
    362         <artifactId>clirr-maven-plugin</artifactId>
    363         <version>${hc.clirr.version}</version>
    364         <configuration>
    365           <comparisonVersion>${api.comparison.version}</comparisonVersion>
    366         </configuration>
    367       </plugin>
    368       <plugin>
    369         <groupId>org.apache.rat</groupId>
    370         <artifactId>apache-rat-plugin</artifactId>
    371         <version>0.11</version>
    372         <executions>
    373           <execution>
    374             <phase>verify</phase>
    375             <goals>
    376               <goal>check</goal>
    377             </goals>
    378           </execution>
    379         </executions>
    380         <configuration>
    381           <excludes>
    382             <exclude>src/docbkx/resources/**</exclude>
    383             <exclude>src/test/resources/*.truststore</exclude>
    384             <exclude>.checkstyle</exclude>
    385           </excludes>
    386         </configuration>
    387       </plugin>
    388     </plugins>
    389   </build>
    390 
    391   <reporting>
    392     <plugins>
    393 
    394       <plugin>
    395         <artifactId>maven-project-info-reports-plugin</artifactId>
    396         <version>${hc.project-info.version}</version>
    397         <inherited>false</inherited>
    398         <reportSets>
    399           <reportSet>
    400             <reports>
    401               <report>dependency-management</report>
    402               <report>issue-tracking</report>
    403               <report>license</report>
    404               <report>scm</report>
    405               <report>summary</report>
    406             </reports>
    407           </reportSet>
    408         </reportSets>
    409       </plugin>
    410 
    411       <plugin>
    412         <groupId>org.codehaus.mojo</groupId>
    413         <artifactId>clirr-maven-plugin</artifactId>
    414         <version>${hc.clirr.version}</version>
    415         <configuration>
    416           <comparisonVersion>${api.comparison.version}</comparisonVersion>
    417         </configuration>
    418       </plugin>
    419 
    420     </plugins>
    421   </reporting>
    422 
    423 </project>
    424