Maven 2 首次在Nexus中部署工件

Maven 2 首次在Nexus中部署工件,maven-2,upload,nexus,artifact,Maven 2,Upload,Nexus,Artifact,当我们第一次尝试在nexus存储库中上传我们的工件时,我得到了以下错误 Error retrieving previous build number for artifact 'foo.bar:bar:pom': repository metadata for: 'snapshot foo.bar:bar:0.0.1-SNAPSHOT' could not be retrieved from repository: InternalSnapshots due to an error: Aut

当我们第一次尝试在nexus存储库中上传我们的工件时,我得到了以下错误

Error retrieving previous build number for artifact 'foo.bar:bar:pom':
repository metadata for: 'snapshot foo.bar:bar:0.0.1-SNAPSHOT' could 
not be retrieved from repository: InternalSnapshots due to an error: 
Authorization failed: Not authorized.

我仔细检查了我的nexus用户名和特权,并将它们与maven settings.xml中指定的用户名和特权进行了对比,发现它们是正确的。还有什么我可能遗漏的吗?

甚至尝试使用settings.xml中的部署用户(默认在Nexus中配置)也遇到了相同的错误…嗯…Nexus安全配置似乎有问题。如果我关闭服务器安全性,问题就会消失。您是否使用和配置了?