常用Maven的仓库地址

Maven 中央仓库地址:

1. http://www.sonatype.org/nexus/

2. http://mvnrepository.com/ (本人推荐仓库)

3. http://repo1.maven.org/maven2


oschina的镜像地址

 <mirror>  
      <id>CN</id>  
      <name>OSChina Central</name>                                                                                                                         
      <url>http://maven.oschina.net/content/groups/public/</url>  
      <mirrorOf>central</mirrorOf>  
    </mirror>

其他镜像地址

http://repository.jboss.org/nexus/content/groups/public/

http://mirrors.ibiblio.org/maven2/

安装本地jar到maven仓库

install:install-file -DgroupId=org.csource -DartifactId=fastdfs-client-java -Dversion=5.0.4 -Dpackaging=jar -Dfile=D:\fastdfs_client.jar 

Redis在windows操作系统下的服务下载:

https://github.com/MicrosoftArchive/redis/releases


### Maven 常用仓库地址 Maven 构建工具依赖于中央仓库来获取所需的和插件。除了官方的中央仓库外,还有其他常用的公共镜像站点可供选择。 #### 中央仓库 这是默认配置下 Maven 使用的主要仓库,包含了大量开源项目的构件。 - URL: `https://repo.maven.apache.org/maven2`[^1] #### 公共镜像站 为了提高下载速度并减少网络延迟的影响,可以选择一些知名的公共镜像站作为替代源: - **Maven Repository** - 浏览器访问网址:[Search/Browse/Explore (mvnrepository.com)](https://mvnrepository.com/) - 配置URL: `https://repo1.maven.org/maven2/` - **阿里云 Maven 镜像** - 提供稳定快速的服务给国内开发者 - URL: `http://maven.aliyun.com/nexus/content/groups/public/` - **网易 Maven 镜像** - 另一选项对于中国地区的用户来说也是不错的选择之一 - URL: `http://mirrors.163.com/maven/repository/maven-central/` 这些镜像站点能够有效提升构建过程中的资源加载效率,特别是在跨国境的数据传输场景下表现尤为明显。 ```xml <repositories> <!-- 官方中央仓库 --> <repository> <id>central</id> <url>https://repo.maven.apache.org/maven2</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> <!-- Maven Repository --> <repository> <id>maven-repo</id> <url>https://repo1.maven.org/maven2/</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> <!-- 阿里云 Maven 镜像 --> <repository> <id>aliyun-maven</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> <!-- 网易 Maven 镜像 --> <repository> <id>netease-maven</id> <url>http://mirrors.163.com/maven/repository/maven-central/</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories> ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值