Pregunta

Estoy creando un proyecto Java usando Maven en Eclipse.Tengo que usar la biblioteca asynchttpclient ( https://github.com/Asynchttpclient / async-http-client ).Ya he ingresado en la dependencia del archivo POM.XML para esta biblioteca.Necesito la clase Uricomponents presentes en el paquete org.asynchttpclient.uri, pero no puedo importarlo.Yo hice:

import org.asynchttpclient.uri.UriComponents; 

pero recibo un error.

Este es el enlace de la clase que necesito:

Uricomponents.Java

¿Cómo puedo importarlo?Gracias.

Aquí está mi POM actual:

<?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>
...

¿Fue útil?

Solución

Está disponible en la versión 1.9.0-BETA6 en com.ning.http.client.uri.UriComponents

El que está solicitando parece estar en la sucursal maestra y aún no está lanzado.

Revise el foro en https://groups.google.com/forum/#!foro / asynchttpclient

Otros consejos

Ver pregunta similar aquí "If you right-click on your project, there should be an option under "maven" to "enable dependency management". That's it."

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top