2016-03-24 10 views
0

maven suggest: 2.53.0から、HtmlUnitDriverを明示的にインクルードする必要があります。mvnがプロジェクトのインストール中にHTMLUnitDriverの依存関係を見つけることができません

<dependency> 
    <groupId>org.seleniumhq.selenium</groupId> 
    <artifactId>selenium-htmlunit-driver</artifactId> 
    <version>2.20</version> 
</dependency> 

ただし、ビルドでは依存関係を解決できません。

>

[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 12.648 s 
[INFO] Finished at: 2016-03-24T14:49:18+02:00 
[INFO] Final Memory: 7M/118M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project maven_selenium_project_sample: Could not resolve dependencies for project com.samplecompany:maven_selenium_project_sample:jar:1.0-SNAPSHOT: Could not find artifact org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.20 in central (https://repo.maven.apache.org/maven2) -> [Help 1] 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project maven_selenium_project_sample: Could not resolve dependencies for project com.samplecompany:maven_selenium_project_sample:jar:1.0-SNAPSHOT: Could not find artifact org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.20 in central (https://repo.maven.apache.org/maven2) 

私は何をしないのですか?

おかげ

答えて

1

あなたは、このようなバージョンで0を逃している:エラーを1として

<dependency> 
    <groupId>org.seleniumhq.selenium</groupId> 
    <artifactId>selenium-htmlunit-driver</artifactId> 
    <version>2.20.0</version> 
</dependency> 
-1

:あなたはMavenの中央に存在しないために求めているもの。次のいずれかが必要です。

<dependency> 
    <groupId>org.seleniumhq.selenium</groupId> 
    <artifactId>htmlunit-driver</artifactId> 
    <version>2.20</version> 
</dependency> 

か:

<dependency> 
    <groupId>org.seleniumhq.selenium</groupId> 
    <artifactId>selenium-htmlunit-driver</artifactId> 
    <version>2.52.0</version> 
</dependency> 

それともhereから他の可能なバージョンのいずれか。

関連する問題