maven:在此行找到多个注释:
我有一个非常简单的maven项目来运行一些selenium
测试。 这是我的pom.xml
:
4.0.0 ignite selenium 0.0.1-SNAPSHOT jar selenium http://maven.apache.org UTF-8 info.cukes cucumber-picocontainer 1.2.5 test info.cukes cucumber-java 1.2.4 org.seleniumhq.selenium selenium-java 3.3.1
但它抱怨:
Multiple annotations found at this line: - Failure to transfer xalan:xalan:jar:2.7.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 xalan:xalan:jar:2.7.2 from/to central (https://repo.maven.apache.org/maven2): SOCKS : authentication failed org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer xalan:xalan:jar:2.7.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 xalan:xalan:jar:2.7.2 from/to central (https://repo.maven.apache.org/maven2): SOCKS : authentication failed at
当我删除依赖项时,它工作正常
pom.xml有什么问题?
以下步骤后问题得到解决:
- 右键单击项目
- Maven – >更新Maven项目
- 勾选复选框如下