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