2017-02-16 8 views
0

私はSelenium webdriverプロジェクト(https://github.com/Ardesco/Selenium-Maven-Template)をチェックしていました。実行されたロジックがない場合でも、このエラーになります。 現在のプロジェクトとプラグイングループ[org.apache.maven.plugins、org.codehaus.mojo]のプレフィックス 'http'のプラグインが見つかりません

$ mvn clean verify -Dit.test=Scraper2IT#testPractitionerUrl3 -Dbrowser=phantomjs -Durl.search=<<URL1>> -Durl.practest = <<URL2>> 
[INFO] Scanning for projects... 

Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml 
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml 
Downloading: https://oss.sonatype.org/content/groups/public/org/apache/maven/plugins/maven-metadata.xml 
Downloading: https://oss.sonatype.org/content/groups/public/org/codehaus/mojo/maven-metadata.xml 
Downloaded: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 100.0 KB/sec) 
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 59.7 KB/sec) 
Downloaded: https://oss.sonatype.org/content/groups/public/org/codehaus/mojo/maven-metadata.xml (22 KB at 38.6 KB/sec) 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.672s 
[INFO] Finished at: Tue Feb 14 22:55:23 EST 2017 
[INFO] Final Memory: 9M/152M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] No plugin found for prefix 'http' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\xxxx\.m2\repository), central (http://repo1.maven.org/maven2), sonatype-public-repository (https://oss.sonatype.org/content/groups/public)] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException 
'ref_page_id' is not recognized as an internal or external command, 
operable program or batch file. 

は、私は他の「プレフィックス」エラーの解決策が、不足しているプラ​​グイン

いずれかの「HTTP」または「https」のないものを見つけ?

答えて

0

以下のように依存関係を更新してから、試してください。ここには、瓶へのリンクがMVN repoにあります。

<project> 
    ... 
    <build> 
     ... 
     <plugins> 
      ... 
      <plugin> 
       <groupId>org.apache.httpcomponents</groupId> 
       <artifactId>httpclient</artifactId> 
       <version>4.5.3</version> 
      </plugin> 
      ... 
     </plugins> 
     ... 
    </build> 
... 
</project> 
関連する問題