【发布时间】:2018-06-27 03:39:12
【问题描述】:
我最近重新安装了 maven。我一直在尝试运行mvn clean install,但我不断收到未通过身份验证的对等错误。我可以使用我在 settings.xml 文件中使用的凭据访问该网站,但我无法完成执行我的目标。
- 我已尝试显式设置 settings.xml 的路径:
mvn clean install -s ~/.m2/settings.xml本地和全球mvn clean install -gs /home/myuser/app/maven/conf/settings.xml - 仔细检查每个文件是否使用了正确的凭据,而且确实如此。
有没有人可以尝试其他解决方案?因为这些凭据 100% 有效,所以我只是不知道为什么它们在这种情况下不起作用。我有什么明确的方法可以在命令行中设置用户名和密码吗?因为我对此束手无策。已经为此工作了大约 2 天,但没有解决方案。
我在 6 个月前使用了同一个 maven 项目,但我不记得曾经遇到过这个问题。与我的同事交谈,他能够使用与我相同的设置运行它,但不在虚拟机上。是VM的错吗?是否有一些代理设置或我必须为虚拟机设置的东西?我正在使用 VMWare 运行我的虚拟机,即 Ubuntu 16。
感谢大家的帮助!
错误信息:
[ERROR] Failed to execute goal on project company-pojo-services: Could not resolve dependencies for project org.company:company-pojo-services:jar:3.6.1.RELEASE: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.oracle:ojdbc6:jar:11.2.0.1.0: Could not transfer artifact javax.jms:jms:jar:1.1 from/to artifactory-online (https://reader:reader@company.artifactoryonline.com/company/company-3/repository/): peer not authenticated -> [Help 1]
编辑:
[ERROR] Failed to execute goal on project company-pojo-services: Could not resolve dependencies for project org.company:company-pojo-services:jar:3.6.1.RELEASE: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.oracle:ojdbc6:jar:11.2.0.1.0: Could not transfer artifact javax.jms:jms:jar:1.1 from/to artifactory-online (https://reader:reader@company.artifactoryonline.com/company/company-3/repository/): Remote host closed connection during handshake: SSL peer shut down incorrectly -> [Help 1}
这里的链接正是我的问题:Maven - peer not authenticated
但是太糟糕了,该解决方案对我不起作用。
【问题讨论】:
标签: java xml maven virtual-machine