简体   繁体   中英

Missing package for org.apache.http, JAR can't be found

I need the org.apache.http package, where i have tried to use the find JAR on web function built inside intelliJ, but no matter, what jar i try to get, it all returns 404 (is this because the package is depricated?)

how is the error i get when i try: 在此处输入图片说明

在此处输入图片说明

Is there any way to get this jar package?

If it's a maven project, specify in your pom.xml the repository. And add the dependencies to apache.

<repositories>
    <repository>
        <id>my-repo</id>
        <url>https://my repo.com</url>
    </repository>
</repositories>

<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpcore</artifactId>
    <version>4.4.12</version>
</dependency>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM