Question

Je crée un projet Java en utilisant Maven dans Eclipse.Je dois utiliser la bibliothèque AsyncHttpClient (https://github.com/AsyncHttpClient/async-http-client).J'ai déjà entré dans le fichier pom.xml la dépendance de cette bibliothèque.J'ai besoin de la classe UriComponents présente dans le package org.asynchttpclient.uri mais je n'arrive pas à l'importer.Je l'ai fait:

import org.asynchttpclient.uri.UriComponents; 

Mais j'obtiens une erreur.

Voici le lien de la classe dont j'ai besoin :

UriComponents.java

Comment puis-je l'importer ?Merci.

Voici mon pom actuel :

<?xml version="1.0" encoding="UTF-8"?> 
<project xmlns="maven.apache.org/POM/4.0.0"; 
         xmlns:xsi="w3.org/2001/XMLSchema-instance";        
         xsi:schemaLocation="maven.apache.org/POM/4.0.0 maven.apache.org/xsd/maven-4.0.0.xsd">; 
<modelVersion>4.0.0</modelVersion> 
...
<dependency> 
    <groupId>com.ning</groupId> 
    <artifactId>async-http-client</artifactId> 
    <version>1.8.12</version> 
</dependency>
...
Était-ce utile?

La solution

Il est disponible dans la version 1.9.0-BETA6 sous com.ning.http.client.uri.UriComponents

Celui que vous demandez semble être dans la branche principale et n'étant pas encore publié.

Vérifiez le forum sur https://groups.google.com/forum/#!Forum / AsynchttpClient

Autres conseils

Voir question similaire ici "If you right-click on your project, there should be an option under "maven" to "enable dependency management". That's it."

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top