Home | History | Annotate | Download | only in lib
      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  -->
     27 <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">
     28   <parent>
     29     <artifactId>project</artifactId>
     30     <groupId>org.apache.httpcomponents</groupId>
     31     <version>4.1</version>
     32     <relativePath>../project/pom.xml</relativePath>
     33   </parent>
     34   <modelVersion>4.0.0</modelVersion>
     35   <groupId>org.apache.httpcomponents</groupId>
     36   <artifactId>httpcomponents-client</artifactId>
     37   <name>HttpComponents Client</name>
     38   <version>4.0.3</version>
     39   <description>Components to build client side HTTP services</description>
     40   <url>http://hc.apache.org/httpcomponents-client</url>
     41   <inceptionYear>1999</inceptionYear>
     42   <packaging>pom</packaging>
     43 
     44   <organization>
     45     <name>Apache Software Foundation</name>
     46     <url>http://www.apache.org/</url>
     47   </organization>
     48 
     49   <licenses>
     50     <license>
     51       <name>Apache License</name>
     52       <url>LICENSE.txt</url>
     53       <distribution>repo</distribution>
     54     </license>
     55   </licenses>
     56 
     57   <issueManagement>
     58     <system>Jira</system>
     59     <url>http://issues.apache.org/jira/browse/HTTPCLIENT</url>
     60   </issueManagement>
     61 
     62   <scm>
     63     <connection>scm:svn:https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk</connection>
     64     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk</developerConnection>
     65     <url>https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk</url>
     66   </scm>
     67 
     68   <properties>
     69     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     70     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     71     <httpcore.version>4.0.1</httpcore.version>
     72     <commons-logging.version>1.1.1</commons-logging.version>
     73     <commons-codec.version>1.3</commons-codec.version>
     74     <mime4j.version>0.6</mime4j.version>
     75     <junit.version>3.8.2</junit.version>
     76   </properties>
     77 
     78   <modules>
     79     <module>httpclient</module>
     80     <module>httpmime</module>
     81     <module>httpclient-osgi</module>
     82   </modules>
     83 
     84   <build>
     85     <plugins>
     86       <plugin>
     87         <artifactId>maven-source-plugin</artifactId>
     88         <executions>
     89           <execution>
     90             <id>attach-sources</id>
     91             <goals>
     92               <goal>jar</goal>
     93             </goals>
     94           </execution>
     95         </executions>
     96       </plugin>
     97       <plugin>
     98         <artifactId>maven-javadoc-plugin</artifactId>
     99         <configuration>
    100           <source>1.5</source>
    101           <links>
    102             <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
    103             <link>http://hc.apache.org/httpcomponents-core/httpcore/apidocs/</link>
    104             <link>http://james.apache.org/mime4j/apidocs/</link>
    105           </links>
    106         </configuration>
    107       </plugin>
    108       <plugin>
    109         <artifactId>maven-site-plugin</artifactId>
    110       </plugin>
    111       <plugin>
    112         <artifactId>maven-assembly-plugin</artifactId>
    113         <configuration>
    114           <descriptors>
    115             <descriptor>src/main/assembly/bin.xml</descriptor>
    116             <descriptor>src/main/assembly/osgi-bin.xml</descriptor>
    117             <descriptor>src/main/assembly/bin-with-deps.xml</descriptor>
    118             <descriptor>src/main/assembly/src.xml</descriptor>
    119           </descriptors>
    120           <tarLongFileMode>gnu</tarLongFileMode>
    121         </configuration>
    122       </plugin>
    123       <plugin>
    124         <artifactId>maven-antrun-plugin</artifactId>
    125         <inherited>false</inherited>
    126         <configuration>
    127           <tasks>
    128             <ant antfile="src/main/assembly/build.xml">
    129               <property name="target" value="${project.build.directory}" />
    130               <property name="package.name" value="${pom.artifactId}-${pom.version}-bin" />
    131             </ant>
    132             <ant antfile="src/main/assembly/build.xml">
    133               <property name="target" value="${project.build.directory}" />
    134               <property name="package.name" value="${pom.artifactId}-${pom.version}-bin-with-dependencies" />
    135             </ant>
    136             <ant antfile="src/main/assembly/build.xml">
    137               <property name="target" value="${project.build.directory}" />
    138               <property name="package.name" value="${pom.artifactId}-${pom.version}-osgi-bin" />
    139             </ant>
    140             <ant antfile="src/main/assembly/build.xml">
    141               <property name="target" value="${project.build.directory}" />
    142               <property name="package.name" value="${pom.artifactId}-${pom.version}-src" />
    143             </ant>
    144           </tasks>
    145         </configuration>
    146       </plugin>
    147       <plugin>
    148         <groupId>com.atlassian.maven.plugins</groupId>
    149         <artifactId>maven-clover2-plugin</artifactId>
    150         <configuration>
    151           <flushPolicy>threaded</flushPolicy>
    152           <flushInterval>100</flushInterval>
    153           <targetPercentage>50%</targetPercentage>
    154         </configuration>
    155         <executions>
    156           <execution>
    157             <id>site</id>
    158             <phase>pre-site</phase>
    159             <goals>
    160               <goal>instrument</goal>
    161               <goal>aggregate</goal>
    162               <goal>save-history</goal>
    163             </goals>
    164           </execution>
    165         </executions>
    166       </plugin>
    167       <plugin>
    168         <groupId>com.agilejava.docbkx</groupId>
    169         <artifactId>docbkx-maven-plugin</artifactId>
    170         <executions>
    171           <execution>
    172             <goals>
    173                 <goal>generate-html</goal>
    174                 <goal>generate-pdf</goal>
    175             </goals>
    176             <phase>pre-site</phase>
    177           </execution>
    178         </executions>
    179         <dependencies>
    180           <dependency>
    181             <groupId>org.docbook</groupId>
    182             <artifactId>docbook-xml</artifactId>
    183             <version>4.4</version>
    184             <scope>runtime</scope>
    185           </dependency>
    186         </dependencies>
    187         <configuration>
    188           <includes>index.xml</includes>
    189           <chunkedOutput>true</chunkedOutput>
    190           <xincludeSupported>true</xincludeSupported>
    191           <foCustomization>src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
    192           <htmlCustomization>src/docbkx/resources/xsl/html_chunk.xsl</htmlCustomization>
    193           <htmlStylesheet>css/hc-tutorial.css</htmlStylesheet>
    194           <entities>
    195             <entity>
    196               <name>version</name>
    197               <value>${pom.version}</value>
    198             </entity>
    199           </entities>
    200           <postProcess>
    201             <copy todir="target/site/tutorial">
    202               <fileset dir="target/docbkx">
    203                 <include name="**/*.html" />
    204                 <include name="**/*.pdf" />
    205               </fileset>
    206             </copy>
    207             <copy todir="target/site/tutorial/html">
    208               <fileset dir="src/docbkx/resources">
    209                 <include name="**/*.css" />
    210                 <include name="**/*.png" />
    211                 <include name="**/*.gif" />
    212                 <include name="**/*.jpg" />
    213               </fileset>
    214             </copy>
    215             <move file="target/site/tutorial/pdf/index.pdf" tofile="target/site/tutorial/pdf/httpclient-tutorial.pdf" failonerror="false" />
    216           </postProcess>
    217         </configuration>
    218       </plugin>
    219 
    220     </plugins>
    221   </build>
    222 
    223   <reporting>
    224     <plugins>
    225 
    226        <plugin>
    227          <artifactId>maven-project-info-reports-plugin</artifactId>
    228          <reportSets>
    229            <reportSet>
    230              <reports>
    231                <report>dependencies</report>
    232                <report>project-team</report>
    233                <report>mailing-list</report>
    234                <report>issue-tracking</report>
    235                <report>scm</report>
    236              </reports>
    237            </reportSet>
    238          </reportSets>
    239       </plugin>
    240 
    241     </plugins>
    242   </reporting>
    243 
    244 </project>
    245