267 lines
11 KiB
XML
267 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
====================================================================
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
====================================================================
|
|
|
|
This software consists of voluntary contributions made by many
|
|
individuals on behalf of the Apache Software Foundation. For more
|
|
information on the Apache Software Foundation, please see
|
|
<http://www.apache.org />.
|
|
--><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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
<artifactId>httpclient5-parent</artifactId>
|
|
<version>5.0-alpha2-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>httpclient5-osgi</artifactId>
|
|
<name>Apache HttpClient OSGi bundle</name>
|
|
<inceptionYear>1999</inceptionYear>
|
|
<description>
|
|
Apache HttpComponents Client (OSGi bundle)
|
|
</description>
|
|
<url>http://hc.apache.org/httpcomponents-client</url>
|
|
<packaging>bundle</packaging>
|
|
|
|
<properties>
|
|
<httpcore.osgi.import.version>"5.0-alpha1"</httpcore.osgi.import.version>
|
|
<commons-logging.osgi.import.version>"[1.1.0, 1.3.0)"</commons-logging.osgi.import.version>
|
|
<pax.url.version>2.4.1</pax.url.version>
|
|
<pax.exam.version>4.5.0</pax.exam.version>
|
|
<osgi.framework.version>5.0.0</osgi.framework.version>
|
|
<slf4j.version>1.7.5</slf4j.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
<artifactId>httpclient5</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<!-- Depend on the OSGi bundle - the bundle plugin knows what to do. -->
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents.core5</groupId>
|
|
<artifactId>httpcore5-osgi</artifactId>
|
|
<version>${httpcore.version}</version>
|
|
<scope>provided</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
<artifactId>httpcore-nio</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>${commons-codec.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
<artifactId>httpclient5-cache</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
|
<artifactId>httpclient5-fluent</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.osgi</groupId>
|
|
<artifactId>org.osgi.core</artifactId>
|
|
<version>${osgi.framework.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.osgi</groupId>
|
|
<artifactId>org.osgi.compendium</artifactId>
|
|
<version>${osgi.framework.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- test dependencies, mainly OSGi runtime environment -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.exam</groupId>
|
|
<artifactId>pax-exam-container-native</artifactId>
|
|
<version>${pax.exam.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>org.apache.felix.framework</artifactId>
|
|
<version>5.0.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.exam</groupId>
|
|
<artifactId>pax-exam-junit4</artifactId>
|
|
<scope>test</scope>
|
|
<version>${pax.exam.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.exam</groupId>
|
|
<artifactId>pax-exam-link-mvn</artifactId>
|
|
<scope>test</scope>
|
|
<version>${pax.exam.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.url</groupId>
|
|
<artifactId>pax-url-aether</artifactId>
|
|
<version>${pax.url.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-bundles</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.directory}/bundles</outputDirectory>
|
|
<!--
|
|
Exclude the ones that are not OSGi
|
|
components, plus OSGi itself.
|
|
-->
|
|
<excludeGroupIds>org.slf4j</excludeGroupIds>
|
|
<excludeArtifactIds>httpclient,httpmime,httpclient-cache,fluent-hc,httpcore,org.osgi.core</excludeArtifactIds>
|
|
<includeScope>compile</includeScope>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<instructions>
|
|
<Bundle-Name>Apache ${project.name}</Bundle-Name>
|
|
<Bundle-SymbolicName>${project.groupId}.httpclient</Bundle-SymbolicName>
|
|
<_exportcontents>
|
|
org.apache.hc.client5.*;version=${project.version}
|
|
</_exportcontents>
|
|
<Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
|
|
<Import-Package>
|
|
javax.crypto,
|
|
javax.crypto.spec,
|
|
javax.naming,
|
|
javax.naming.directory,
|
|
javax.naming.ldap,
|
|
javax.net,
|
|
javax.net.ssl,
|
|
javax.security.auth.x500,
|
|
org.ietf.jgss,,
|
|
org.osgi.framework,
|
|
org.osgi.service.cm,
|
|
org.apache.commons.logging;version=${commons-logging.osgi.import.version},
|
|
org.apache.hc.core5.concurrent;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.pool;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.ssl;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.util;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.http;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.http.config;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.http.entity;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.http.message;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.http.io;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.http.protocol;version=${httpcore.osgi.import.version},
|
|
org.apache.hc.core5.http.impl.io;version=${httpcore.osgi.import.version},
|
|
net.sf.ehcache.*;resolution:=optional,
|
|
net.spy.memcached.*;resolution:=optional
|
|
</Import-Package>
|
|
<Bundle-Activator>org.apache.hc.client5.http.osgi.impl.HttpProxyConfigurationActivator</Bundle-Activator>
|
|
<!-- Stop the JAVA_1_n_HOME variables from being treated as headers by Bnd -->
|
|
<_removeheaders>JAVA_1_3_HOME,JAVA_1_4_HOME</_removeheaders>
|
|
</instructions>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>2.18.1</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<java.awt.headless>true</java.awt.headless>
|
|
<project.build.directory>${project.build.directory}</project.build.directory>
|
|
<project.version>${project.version}</project.version>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
<finalName>org.apache.httpcomponents.httpclient_${project.version}</finalName>
|
|
</build>
|
|
|
|
<reporting>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
|
<version>${hc.project-info.version}</version>
|
|
<inherited>false</inherited>
|
|
<reportSets>
|
|
<reportSet>
|
|
<reports>
|
|
<report>dependencies</report>
|
|
<report>dependency-info</report>
|
|
<report>summary</report>
|
|
</reports>
|
|
</reportSet>
|
|
</reportSets>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</reporting>
|
|
|
|
</project>
|