httpclient
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>dev.ikm.jpms</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14-r4</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<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>dev.ikm.build</groupId>
<artifactId>parent</artifactId>
<version>1.50.0</version>
<relativePath></relativePath>
</parent>
<groupId>dev.ikm.jpms</groupId>
<artifactId>httpclient</artifactId>
<packaging>jar</packaging>
<version>${core.artifact.version}-${core.artifact.release}</version>
<description>
Builds the httpclient. Requires the commons logging to be built first and be excluded
from any other poms requiring it.
</description>
<properties>
<!-- change release here-->
<core.artifact.version>4.5.14</core.artifact.version>
<core.artifact.release>r4</core.artifact.release>
<!-- transitive dependency versions -->
<httpcore.version>4.4.16</httpcore.version>
<commons-logging.version>1.2</commons-logging.version>
<commons-codec.version>1.11</commons-codec.version>
<maven.moditect.plugin>1.2.2.Final</maven.moditect.plugin>
</properties>
<licenses>
<license>
<name>Apache Software License 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<!-- transitive dependencies of the repackaged artifact -->
<dependencies>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>${httpcore.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons-logging.version}</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>${commons-codec.version}</version>
</dependency>
</dependencies>
<!-- Has no dependencies in this artifact -->
<build>
<resources>
<resource>
<directory>${basedir}/</directory>
<includes>
<include>LICENSE.txt</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<version>${maven.moditect.plugin}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>sources</id>
<goals>
<goal>copy</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${core.artifact.version}</version>
<classifier>sources</classifier>
</artifactItem>
<artifactItem>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${core.artifact.version}</version>
<classifier>javadoc</classifier>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>
${project.build.directory}/dependency/${project.artifactId}-${core.artifact.version}-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
<artifact>
<file>
${project.build.directory}/dependency/${project.artifactId}-${core.artifact.version}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<executions>
<execution>
<id>add-module-infos</id>
<phase>prepare-package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/moditect</outputDirectory>
<overwriteExistingFiles>true</overwriteExistingFiles>
<modules>
<module>
<artifact>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${core.artifact.version}</version>
</artifact>
<moduleInfoSource>
module dev.ikm.jpms.httpcomponents {
requires java.naming;
requires org.apache.commons.codec;
requires commons.logging;
requires java.security.jgss;
requires org.apache.httpcomponents.httpcore;
exports org.apache.http.auth;
exports org.apache.http.auth.params;
exports org.apache.http.client;
exports org.apache.http.client.config;
exports org.apache.http.client.entity;
exports org.apache.http.client.methods;
exports org.apache.http.client.params;
exports org.apache.http.client.protocol;
exports org.apache.http.client.utils;
exports org.apache.http.conn;
exports org.apache.http.conn.params;
exports org.apache.http.conn.routing;
exports org.apache.http.conn.scheme;
exports org.apache.http.conn.socket;
exports org.apache.http.conn.ssl;
exports org.apache.http.conn.util;
exports org.apache.http.cookie;
exports org.apache.http.cookie.params;
exports org.apache.http.impl.auth;
exports org.apache.http.impl.client;
exports org.apache.http.impl.conn;
exports org.apache.http.impl.conn.tsccm;
exports org.apache.http.impl.cookie;
exports org.apache.http.impl.execchain;
}
</moduleInfoSource>
</module>
</modules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>rename-sources</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo message="renaming sources file" />
<copy file="${project.build.directory}/dependency/${project.artifactId}-${core.artifact.version}-sources.jar"
tofile="${project.build.directory}/${project.artifactId}-${core.artifact.version}-${core.artifact.release}-sources.jar" />
</target>
</configuration>
</execution>
<execution>
<id>rename-javadoc</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo message="renaming javadoc file" />
<copy file="${project.build.directory}/dependency/${project.artifactId}-${core.artifact.version}-javadoc.jar"
tofile="${project.build.directory}/${project.artifactId}-${core.artifact.version}-${core.artifact.release}-javadoc.jar" />
</target>
</configuration>
</execution>
<execution>
<phase>prepare-package</phase>
<configuration>
<target>
<echo message="unzipping files" />
<unzip
src="${project.build.directory}/moditect/${project.artifactId}-${core.artifact.version}.jar"
dest="${project.build.directory}/classes/">
<patternset>
<exclude name="**/MANIFEST.MF" />
</patternset>
</unzip>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>