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: enter image description here

enter image description here

Is there any way to get this jar package?

Upvotes: 0

Views: 2823

Answers (2)

Whysy
Whysy

Reputation: 41

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>

Upvotes: 0

Lesiak
Lesiak

Reputation: 25966

Try downloading it from maven repositories

https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore/4.4.12

Upvotes: 1

Related Questions