Mavenを使用してJavaプロジェクトでAsynchTtpClientを使用してください

StackOverflow https://stackoverflow.com//questions/25054601

  •  21-12-2019
  •  | 
  •  

質問

EclipseでMavenを使用してJavaプロジェクトを作成しています。私はライブラリ asynchttpclient を使用しなければなりません( https://github.com/asynchttpclient / async-http-client )。私はすでにこのライブラリのファイルpom.xml依存関係に入力しました。org.asynchttpclient.URIのパッケージに存在するクラスのuricコンポーネントが必要ですが、インポートできません。私はしました:

import org.asynchttpclient.uri.UriComponents; 
.

しかし私はエラーを受けます。

これは私が必要とするクラスのリンクです:

uricomponents.java

どうすればインポートできますか?ありがとう。

これは私の現在の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>
...
.

役に立ちましたか?

解決

1.9.0-BETA6

の下のバージョンcom.ning.http.client.uri.UriComponentsで利用可能です。

あなたが要求しているものは、マスターブランチにあるようで、まだリリースされていません。

https://groups.google.com/forum/#!フォーラム/ AsynchttpClient

他のヒント

似た質問を見てください "If you right-click on your project, there should be an option under "maven" to "enable dependency management". That's it."

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top