Maven访问被拒绝授权异常本地LAN Nexus

Maven访问被拒绝授权异常本地LAN Nexus,maven,Maven,我在局域网上的Nexus上遇到以下错误: Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:1.3.5.RELEASE at org.apache.maven.repository.internal.DefaultArtif

我在局域网上的Nexus上遇到以下错误:

Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:1.3.5.RELEASE
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:282)
...
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could  not transfer artifact org.springframework.boot:spring-boot-maven-  plugin:pom:1.3.5.RELEASE from/to nexus (http://ma
venrepo.dev.au.service.com/nexus/content/groups/public): Access denied to:    http://mavenrepo.dev.au.service.com/nexus/content/groups/public/org/springframework/boot/spring-boot-maven-pl
ugin/1.3.5.RELEASE/spring-boot-maven-plugin-1.3.5.RELEASE.pom, ReasonPhrase: Forbidden.
....
Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to:           http://mavenrepo.dev.au.service.com/nexus/content/groups/public/org/springfra     mework/boot/spring-b
oot-maven-plugin/1.3.5.RELEASE/spring-boot-maven-plugin-1.3.5.RELEASE.pom,   ReasonPhrase: Forbidden.
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.resourceExists(AbstractHttpClientWagon.java:707)
pom可从浏览器访问,无需身份验证。 用户名和密码存在于设置文件中,对于某些开发人员来说可以正常工作,但对于其他开发人员则不行。我们尝试过使用或不使用证书,但运气不佳

环境:Maven 3.3.9,Java 1.8,Windows 7,无代理

在我看来,这更像是Windows防火墙/网络问题,因为这个项目运行在virtualbox上的来宾linux上

Maven跟踪日志也没有添加任何内容


有什么想法吗?

我们用ip替换了nexus名称,并且开始工作,所以它不是身份验证。奇怪的是,相同名称的url在浏览器和wget中正确解析


我假设这与maven将名称解析为ip的方式有关…

在命令行上执行此maven命令:
mvn help:effective settings
并比较结果看起来nexus需要某种身份验证,消息“访问被拒绝:`让我想想。。。