我是靠谱客的博主 轻松芹菜,这篇文章主要介绍Maven 更换远程仓库地址,现在分享给大家,希望可以做个参考。

1.第一种方式,通过setting.xml的方式配置数据源

该文件路径D:IDEapache-maven-3.2.3confsetting.xml

该文件大部分内容都已经注释,我们需要添加如下内容:

<profile>
        <id>dev</id>  
        <!-- repositories and pluginRepositories here-->  
        <repositories>
            <repository>
                <id>nexus-aliyun</id>
                <name>Nexus aliyun</name>
                <url>http://maven.aliyun.com/nexus/content/groups/public</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
        </repositories>
    </profile>
</profiles>
<activeProfiles>
    <activeProfile>dev</activeProfile>  
</activeProfiles>

 

转载于:https://www.cnblogs.com/heben/p/6077323.html

最后

以上就是轻松芹菜最近收集整理的关于Maven 更换远程仓库地址的全部内容,更多相关Maven内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部