我是靠谱客的博主 超级小刺猬,这篇文章主要介绍Maven配置镜像和仓库,现在分享给大家,希望可以做个参考。

仓库配置

首先,项目中可以添加作用在本项目中的仓库,使用<repositories> 和  <pluginRepositories>定义。这种方式只在当前pom文件对应的项目及其子项目中起作用

//依赖仓库地址配置 
<repositories>
            <repository>
                <id>edas-oss-central</id>
                <name>taobao mirror central</name>
                <url>http://edas-public.oss-cn-hangzhou.aliyuncs.com/repository</url>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
                <releases>
                    <enabled>true</enabled>
                </releases>
            </repository>
 </repositories>
//插件仓库地址配置
 <pluginRepositories>
            <pluginRepository>
                <id>edas-oss-plugin-central</id>
                <url>http://edas-public.oss-cn-hangzhou.aliyuncs.com/repository</url>
                <snapshots&g

最后

以上就是超级小刺猬最近收集整理的关于Maven配置镜像和仓库的全部内容,更多相关Maven配置镜像和仓库内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部