Apache http get async

Fohnbit

Top Contributor
Hallo!

Ich schaffe es leider nicht, alle Abhängigkeiten über Maven in mein Projekt zu bekommen, damit ich ein http Get absetzen kann, welch mein Code nicht blockiert.

Die Vorlage des Code:

Was ich hinzugefügt habe:
1719476175456.png

Dennoch:
1719476203126.png

Welches Maven ist hier das korrekte? Bzw. benötige ich noch zusätzliche?

Danke!
 

KonradN

Super-Moderator
Mitarbeiter
Wie bindest Du denn die Abhängigkeiten ein?

Aber unabhängig davon: Auf mvnrepository.com kannst Du die Abhängigkeiten sehen:
Bildschirmfoto 2024-06-27 um 10.46.17.png

Und die angemeckerten Klassen sind in httpcore enthalten.

Aber bei so Abhängigkeiten kann ich nur empfehlen, ein System zu nutzen, dass auch transitive Abhängigkeiten mit hinzufügt wie Maven, ivy, ...

Manche IDEs bieten das auch (z.B. IntelliJ) wenn man Abhängigkeiten von einem Maven Repository hinzufügt.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
P Eigenes Maven Repository via Apache HTTP Tools - Maven, Gradle, Ant & mehr 16
K unresolved dependency: org.apache.logging.log4j#log4j-core-java9;2.16.0: not found Tools - Maven, Gradle, Ant & mehr 4
H Apache POI Tools - Maven, Gradle, Ant & mehr 2
dtr84 Apache Ivy - Plattform-spezifische Abhängigkeiten in der "ivy.xml" parametrisieren Tools - Maven, Gradle, Ant & mehr 1
L Apache Wicket problem Tools - Maven, Gradle, Ant & mehr 4
J Jar packen mit Apache-POI Tools - Maven, Gradle, Ant & mehr 3
M Lokales maven Repo mit Apache Archiva synchronisieren. Tools - Maven, Gradle, Ant & mehr 2
L Apache ANT War Task Tools - Maven, Gradle, Ant & mehr 2
G Eclipse & Apache Tomcat Tools - Maven, Gradle, Ant & mehr 3
O Suche Apache Ant Task Tools - Maven, Gradle, Ant & mehr 3
G Save Failed:org/apache/tools/ant/Main Tools - Maven, Gradle, Ant & mehr 1
G Applet läuft nicht auf Apache Server sonst schon. Tools - Maven, Gradle, Ant & mehr 4
F import org.apache.commons.net.ftp.FTPClient; Tools - Maven, Gradle, Ant & mehr 3
D Can not read HTTP response, caught IOException Tools - Maven, Gradle, Ant & mehr 1
W HTTP-Uploader Tools - Maven, Gradle, Ant & mehr 9
M HTTP-request aus Applet Tools - Maven, Gradle, Ant & mehr 2
T HTTP 504 Fehler bei DataInputStream Tools - Maven, Gradle, Ant & mehr 17
P http-request ausführen Tools - Maven, Gradle, Ant & mehr 2

Ähnliche Java Themen

Neue Themen


Oben