我是靠谱客的博主 彪壮绿草,这篇文章主要介绍maven私服禁用匿名访问配置,现在分享给大家,希望可以做个参考。

原文链接:nexus2.x禁用匿名访问配置



2. 创建新用户



3.在maven的setting.xml中配置新用户账号密码

<server>
        <id>public</id>
        <username>sworddev</username>
        <password>sworddev</password>
    </server>

注意:这里的id需与eclipse中pom.xml中的repositories中的id一致

例如:

<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>public</id>
<name>Public Repositories</name>
<url>http://127.0.0.1:8081/nexus/content/groups/public/</url>
</repository>
</repositories>

最后

以上就是彪壮绿草最近收集整理的关于maven私服禁用匿名访问配置的全部内容,更多相关maven私服禁用匿名访问配置内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(49)

评论列表共有 0 条评论

立即
投稿
返回
顶部