Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.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 Visual Studio代码-pom.xml-缺少工件_Java_Maven_Visual Studio Code_Automation_Pom.xml - Fatal编程技术网

Java Visual Studio代码-pom.xml-缺少工件

Java Visual Studio代码-pom.xml-缺少工件,java,maven,visual-studio-code,automation,pom.xml,Java,Maven,Visual Studio Code,Automation,Pom.xml,我试图在VScode中设置自动测试,但从maven pom.xml文件中收到依赖项错误 我是一名自动化测试人员,使用小黄瓜运行测试场景。我对它还是相当陌生,但我需要为一个新项目在VScode中设置自动化。不幸的是,我对此有很多问题。我认为在尝试下载依赖项时会出现错误,但老实说,我真的不知道。我可以链接到下面的错误 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/

我试图在VScode中设置自动测试,但从maven pom.xml文件中收到依赖项错误

我是一名自动化测试人员,使用小黄瓜运行测试场景。我对它还是相当陌生,但我需要为一个新项目在VScode中设置自动化。不幸的是,我对此有很多问题。我认为在尝试下载依赖项时会出现错误,但老实说,我真的不知道。我可以链接到下面的错误

<?xml version="1.0" encoding="UTF-8"?>
<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">

编辑:更新错误日志

请不要链接错误,而是将其复制到问题中。关于堆栈跟踪,您必须在mavens settings.xml中提供公司代理/存储库的详细信息(可能是使用maven的同事可以提供帮助);您可以转储其中的大部分,最重要/混乱/重要的部分是“无法将工件xxx从/传输到中心():不知道这样的主机”您可以参考以下内容:,可能对您有帮助
Failure to transfer org.jacoco:jacoco-maven-plugin:pom:0.8.2 from 
https://repo.maven.apache.org/maven2 was cached in the local repository, 
resolution will not be reattempted until the update interval of central 
has elapsed or updates are forced. Original error: Could not transfer 
artifact org.jacoco:jacoco-maven-plugin:pom:0.8.2 from/to central 
(https://repo.maven.apache.org/maven2): No such host is known (repo.maven.apache.org)

Failed to read artifact descriptor for org.jsoup:jsoup:jar:1.8.3

Failed to read artifact descriptor for org.mockito:mockito-core:jar:2.23.4

Missing artifact com.{companyName}:cucumber-selenium:jar:5.2.16-SNAPSHOT

Missing artifact org.jsoup:jsoup:jar:1.8.3

Missing artifact com.{companyName}:oao-app-sdk:jar:1.0-SNAPSHOT

Missing artifact org.mockito:mockito-core:jar:2.23.4

Error while downloading 'http://maven.apache.org/xsd/maven-4.0.0.xsd' to 
C:\Users\{username}\.lsp4xml\cache\http\maven.apache.org\xsd\maven-4.0.0.xsd.

CoreException: Could not calculate build plan: Plugin 
org.apache.maven.plugins:maven-compiler-plugin:3.3 
or one of its dependencies could not be resolved: Failed to read artifact descriptor for 
org.apache.maven.plugins:maven-compiler-plugin:jar:3.3: 
ArtifactResolutionException: Could not transfer artifact 
org.apache.maven.plugins:maven-compiler-plugin:pom:3.3 
from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org