Home | History | Annotate | Download | only in 4.1
      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 
     28 <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">
     29   <modelVersion>4.0.0</modelVersion>
     30   <parent>
     31     <groupId>org.apache.httpcomponents</groupId>
     32     <artifactId>httpcomponents-core</artifactId>
     33     <version>4.1</version>
     34   </parent>
     35   <artifactId>httpcore</artifactId>
     36   <name>HttpCore</name>
     37   <inceptionYear>2005</inceptionYear>
     38   <description>
     39    HttpComponents Core (blocking I/O)
     40   </description>
     41   <url>http://hc.apache.org/httpcomponents-core-ga/</url>
     42   <packaging>jar</packaging>  
     43 
     44   <properties>
     45     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     46     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     47     <maven.compile.source>1.3</maven.compile.source>
     48     <maven.compile.target>1.3</maven.compile.target>
     49     <maven.compile.optimize>true</maven.compile.optimize>
     50     <maven.compile.deprecation>true</maven.compile.deprecation>
     51     <!-- default compiler and surefire plugin settings for "java" profiles -->
     52     <httpcore.compiler.fork>false</httpcore.compiler.fork>
     53     <httpcore.compiler.compilerVersion />
     54     <httpcore.compiler.javac />
     55     <httpcore.surefire.java />
     56     <httpcore.surefire.version>2.4.3</httpcore.surefire.version>
     57   </properties>
     58 
     59   <dependencies>
     60     <dependency>
     61       <groupId>junit</groupId>
     62       <artifactId>junit</artifactId>
     63     </dependency>
     64   </dependencies>
     65 
     66   <build>
     67     <resources>
     68       <resource>
     69         <directory>src/main/resources</directory>
     70         <filtering>true</filtering>
     71         <includes>
     72             <include>**/*.properties</include>
     73         </includes>
     74       </resource>
     75     </resources>
     76     <plugins>
     77       <plugin>
     78         <groupId>org.apache.maven.plugins</groupId>
     79         <artifactId>maven-compiler-plugin</artifactId>
     80         <configuration>
     81           <source>${maven.compile.source}</source>
     82           <target>${maven.compile.target}</target>
     83           <optimize>${maven.compile.optimize}</optimize>
     84           <showDeprecations>${maven.compile.deprecation}</showDeprecations>
     85           <fork>${httpcore.compiler.fork}</fork>
     86           <compilerVersion>${httpcore.compiler.compilerVersion}</compilerVersion>
     87           <executable>${httpcore.compiler.javac}</executable>
     88         </configuration>
     89       </plugin>
     90       <plugin>
     91         <artifactId>maven-surefire-plugin</artifactId>
     92         <version>${httpcore.surefire.version}</version>
     93         <configuration>
     94           <jvm>${httpcore.surefire.java}</jvm>
     95         </configuration>
     96       </plugin>
     97       <plugin>
     98         <artifactId>maven-jar-plugin</artifactId>
     99         <configuration>
    100           <archive>
    101             <manifestEntries>
    102               <Specification-Title>HttpComponents HttpCore</Specification-Title>
    103               <Specification-Version>${project.version}</Specification-Version>
    104               <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
    105               <Implementation-Title>HttpComponents HttpCore</Implementation-Title>
    106               <Implementation-Version>${project.version}</Implementation-Version>
    107               <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
    108               <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    109               <url>${project.url}</url>
    110             </manifestEntries>
    111           </archive>
    112         </configuration>
    113       </plugin>
    114       <plugin>
    115         <groupId>com.atlassian.maven.plugins</groupId>
    116         <artifactId>maven-clover2-plugin</artifactId>
    117         <configuration>
    118           <flushPolicy>threaded</flushPolicy>
    119           <flushInterval>100</flushInterval>
    120           <targetPercentage>50%</targetPercentage>
    121         </configuration>
    122         <executions>
    123           <execution>
    124             <id>site</id>
    125             <phase>pre-site</phase>
    126             <goals>
    127               <goal>instrument</goal>
    128             </goals>
    129           </execution>
    130         </executions>
    131       </plugin>
    132     </plugins>
    133   </build>
    134 
    135   <reporting>
    136     <plugins>
    137 
    138       <plugin>
    139         <artifactId>maven-javadoc-plugin</artifactId>
    140         <configuration>
    141           <source>1.5</source>
    142           <links>
    143             <link>http://download.oracle.com/javase/1.5.0/docs/api/</link>
    144           </links>
    145         </configuration>
    146         <reportSets>
    147           <reportSet>
    148             <reports>
    149               <report>javadoc</report>
    150             </reports>
    151           </reportSet>
    152         </reportSets>
    153       </plugin>
    154 
    155       <plugin>
    156         <groupId>com.atlassian.maven.plugins</groupId>
    157         <artifactId>maven-clover2-plugin</artifactId>
    158         <configuration>
    159           <jdk>1.4</jdk>
    160         </configuration>
    161       </plugin>
    162 
    163       <plugin>
    164         <groupId>org.codehaus.mojo</groupId>
    165         <artifactId>clirr-maven-plugin</artifactId>
    166         <configuration>
    167           <comparisonVersion>4.0</comparisonVersion>
    168         </configuration>
    169       </plugin>
    170 
    171       <plugin>
    172         <artifactId>maven-jxr-plugin</artifactId>
    173       </plugin>
    174 
    175       <plugin>
    176         <artifactId>maven-surefire-report-plugin</artifactId>
    177       </plugin>
    178 
    179     </plugins>
    180   </reporting>
    181 
    182   <profiles>
    183     <!--
    184        Profile for running the build using JDK 1.3
    185        (JAVA_1_3_HOME needs to be defined, e.g. in settings.xml or an environment variable)
    186       -->
    187     <profile>
    188       <id>java-1.3</id>
    189       <properties>
    190         <httpcore.compiler.fork>true</httpcore.compiler.fork>
    191         <httpcore.compiler.compilerVersion>1.3</httpcore.compiler.compilerVersion>
    192         <httpcore.compiler.javac>${JAVA_1_3_HOME}/bin/javac</httpcore.compiler.javac>
    193         <httpcore.surefire.java>${JAVA_1_3_HOME}/bin/java</httpcore.surefire.java>
    194         <!-- Later versions of Surefire don't run with Java 1.3 -->
    195         <httpcore.surefire.version>2.2</httpcore.surefire.version>
    196         <!-- Later versions of JUnit don't run with Java 1.3 -->
    197         <junit.version>3.8.1</junit.version>
    198       </properties>
    199     </profile>
    200     <!--
    201        Profile for running the build using JDK 1.4
    202        (JAVA_1_4_HOME needs to be defined, e.g. in settings.xml or an environment variable)
    203       -->
    204     <profile>
    205       <id>java-1.4</id>
    206       <properties>
    207         <httpcore.compiler.fork>true</httpcore.compiler.fork>
    208         <httpcore.compiler.compilerVersion>1.4</httpcore.compiler.compilerVersion>
    209         <httpcore.compiler.javac>${JAVA_1_4_HOME}/bin/javac</httpcore.compiler.javac>
    210         <httpcore.surefire.java>${JAVA_1_4_HOME}/bin/java</httpcore.surefire.java>
    211         <!-- Later versions of JUnit don't run with Java 1.4 -->
    212         <junit.version>3.8.2</junit.version>
    213       </properties>
    214     </profile>
    215     <!-- 
    216        Profile to ensure correct version of JUnit is used if the default Java is 1.4
    217        Maven2 requires 1.4+ so no need for equivalent 1.3 version.
    218       -->
    219     <profile>
    220       <activation>
    221         <jdk>1.4</jdk>
    222       </activation>
    223       <properties>
    224         <!-- Later versions of JUnit don't run with Java 1.4 -->
    225         <junit.version>3.8.2</junit.version>
    226       </properties>
    227     </profile>
    228   </profiles>
    229 </project>
    230