httpclient的pom
时间: 2023-09-02 20:14:13 浏览: 98
文件可以在Maven中央仓库中找到,也可以在Apache官网上找到。
以下是HttpClient 4.5.13的pom.xml文件示例:
```xml
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
<packaging>jar</packaging>
<name>Apache HttpClient</name>
<description>The Apache HttpClient library is a toolset for implementing HTTP clients. It supports HTTP/1.1, HTTP/2, and HTTPS protocols.</description>
<url>https://hc.apache.org/httpcomponents-client-4.5.x/index.html</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>olegk</id>
<name>Oleg Kalnichevski</name>
<email>olegk@apache.org</email>
<roles>
<role>project lead</role>
</roles>
</developer>
<developer>
<id>sebb</id>
<name>Sebb (ASF)</name>
<email>sebb@apache.org</email>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.14</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
```
该文件包含了项目的基本信息、开源许可证、开发者信息以及依赖项信息。在Maven中,通过引入该pom.xml文件即可获取HttpClient的依赖项,并将其添加到项目中。
阅读全文