Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 错误maven:无法解析项目的依赖项。。。_Java_Maven_Selenium_Dependencies - Fatal编程技术网

Java 错误maven:无法解析项目的依赖项。。。

Java 错误maven:无法解析项目的依赖项。。。,java,maven,selenium,dependencies,Java,Maven,Selenium,Dependencies,我的Maven安装在上一个依赖项时失败。这是一份报告。 以下是POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> &

我的Maven安装在上一个依赖项时失败。这是一份报告。 以下是POM:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  
<modelVersion>4.0.0</modelVersion>
<artifactId>fr.SIRHEN.automation</artifactId>
<version>1.0.0</version>

<dependencies>

<dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <scope>compile</scope>
    <version>6.9.4</version>
</dependency>
<dependency>
    <groupId>com.aventstack</groupId>
    <artifactId>extentreports</artifactId>
    <version>3.0.5</version>
</dependency>
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>3.0.1</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.fluentlenium</groupId>
    <artifactId>fluentlenium-core</artifactId>
    <version>0.9.0</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>net.java.dev.jna</groupId>
    <artifactId>jna</artifactId>
    <version>4.1.0</version>
</dependency>
<dependency>
    <groupId>org.apache.ws.security</groupId>
    <artifactId>wss4j</artifactId>
    <version>1.6.2</version>
</dependency>
<dependency>
    <groupId>org.opensaml</groupId>
    <artifactId>openws</artifactId>
    <version>1.4.1</version>
</dependency>
<dependency>
    <groupId>xom</groupId>
    <artifactId>xom</artifactId>
    <version>1.1</version>
</dependency>
<dependency>
    <groupId>javax.mail</groupId>
    <artifactId>mail</artifactId>
    <version>1.4</version>
</dependency>
<dependency>
    <groupId>org.opensaml</groupId>
    <artifactId>xmltooling</artifactId>
    <version>1.3.1</version>
</dependency>   
<dependency>
    <groupId>org.opensaml</groupId>
    <artifactId>opensaml</artifactId>
    <version>2.4.1</version>
</dependency>
<dependency>
    <groupId>commons-httpclient</groupId>
    <artifactId>commons-httpclient</artifactId>
    <version>3.1</version>
</dependency>
<dependency>
    <groupId>joda-time</groupId>
    <artifactId>joda-time</artifactId>
    <version>1.6.2</version>
</dependency>
<dependency>
    <groupId>xalan</groupId>
    <artifactId>serializer</artifactId>
    <version>2.7.1</version>
</dependency>
<dependency>
    <groupId>org.samba.jcifs</groupId>
    <artifactId>jcifs</artifactId>
    <version>1.2.9</version>
</dependency>
<dependency>
    <groupId>rhino</groupId>
    <artifactId>js</artifactId>
    <version>1.7R2</version>
</dependency>
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-lang3</artifactId>
    <version>3.3.2</version>
</dependency>
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpcore</artifactId>
    <version>4.3.2</version>
</dependency>
<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi</artifactId>
    <version>3.15</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-util</artifactId>
    <version>9.2.15.v20160210</version>
</dependency>
<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
</dependency>
<dependency>
    <groupId>net.sourceforge.htmlunit</groupId>
    <artifactId>htmlunit-core-js</artifactId>
    <version>2.23</version>
</dependency>
<dependency>
    <groupId>net.sourceforge.htmlunit</groupId>
    <artifactId>htmlunit</artifactId>
    <version>2.23</version>
</dependency>
<dependency>
   <groupId>org.apache.httpcomponents</groupId>
   <artifactId>httpclient</artifactId>
   <version>4.3.5</version>
   <scope>compile</scope>
</dependency>
<dependency>
    <groupId>com.opencsv</groupId>
    <artifactId>opencsv</artifactId>
    <version>3.3</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>org.apache.xmlbeans</groupId>
    <artifactId>xmlbeans</artifactId>
    <version>2.6.0</version>
    <scope>compile</scope>
</dependency>
<dependency>
    <groupId>com.smartbear.soapui</groupId>
    <artifactId>soapui-maven-plugin</artifactId>
    <version>4.6.1</version>
    <scope>compile</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>central</id>
<name>bintray</name>
<url>http://central.maven.org/maven2/</url>
</repository>
<repository>
<id>central2</id>
<name>soapui</name>
<url>http://www.soapui.org/repository/maven2/</url>
</repository>
</repositories>

<groupId>fr.SIRHEN</groupId>
<name>AutomatisationSIRHENMAVEN</name>
<build>
<plugins>
    <plugin>
        <groupId>com.smartbear.soapui</groupId>
        <artifactId>soapui-maven-plugin</artifactId>
        <version>4.6.1</version>
    </plugin>
</plugins>
</build>
</project>
我没有找到解决的办法


当我删除此依赖项时,maven install正在运行。

您可以从当前主机(执行maven构建的主机)访问central.maven.org吗?对不起,我不理解这个问题……好的,打开web浏览器并在地址栏central.maven.org中键入它是否返回任何内容或404?它返回一些内容。包含大量子文件夹的文件夹maven2扫描您的本地存储库中是否已经存在其他版本的aventstack JAR?如果存在,请手动删除它们,然后再次尝试执行maven安装。如果它不存在,那么尝试执行maven更新并选中force updates复选框,并为其提供一个maven构建。
[INFO] ------------------------------------------------------------------------
[INFO] Building AutomatisationSIRHENMAVEN 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://central.maven.org/maven2/com/aventstack/extentreports/3.0.5/extentreports-3.0.5.pom
[INFO] Downloading: http://www.soapui.org/repository/maven2/com/aventstack/extentreports/3.0.5/extentreports-3.0.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.637 s
[INFO] Finished at: 2017-04-12T14:40:24+02:00
[INFO] Final Memory: 11M/157M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project fr.SIRHEN.automation: Could not resolve dependencies for project fr.SIRHEN:fr.SIRHEN.automation:jar:1.0.0: Failed to collect dependencies at com.aventstack:extentreports:jar:3.0.5: Failed to read artifact descriptor for com.aventstack:extentreports:jar:3.0.5: Could not transfer artifact com.aventstack:extentreports:pom:3.0.5 from/to central (http://central.maven.org/maven2/): central.maven.org: Unknown host central.maven.org -> [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/DependencyResolutionException