Question

I'm creating a java project using Maven in Eclipse. I have to use the library AsyncHttpClient (https://github.com/AsyncHttpClient/async-http-client). I've already entered in the file pom.xml dependency for this library. I need the class UriComponents present in the package org.asynchttpclient.uri but I can not import it. I did:

import org.asynchttpclient.uri.UriComponents; 

But I get an error.

This is the link of the class that I need:

UriComponents.java

How can I import it? Thanks.

Here is my current pom:

<?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>
...
Was it helpful?

Solution

It's available in version 1.9.0-BETA6 under com.ning.http.client.uri.UriComponents

The one you are requesting seems to be in the master branch, and not being released yet.

Check the forum at https://groups.google.com/forum/#!forum/asynchttpclient

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top