将完整的maven远程存储库下载到本地存储库? [英] Downloading complete maven remote repository to Local repository?

查看:1399
本文介绍了将完整的maven远程存储库下载到本地存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取整个远程存储库,例如 http://repo1.maven.org/maven2 / ,到我的本地存储库(到%USERPROFILE%)?

Is there any to get the entire remote repository, say from http://repo1.maven.org/maven2/ , to my local repository (to %USERPROFILE%)?

推荐答案

来自 http://maven.apache.org/community.html


成为优秀的Maven Citizen



公共存储库的概念
内置于
的核心架构中,Maven使其必然以b $ b b社区为中心。有几个
简单的东西,Maven用户可以做b $ b来帮助保持社区蓬勃发展。

Being a Good Maven Citizen

The concept of a public repository built into the core architecture of Maven makes it necessarily community-centric. There are a few simple things that Maven users may do to help keep that community thriving.

用户可以做的最好的事情是
来设置他们自己的远程存储库
包含所需项目的镜像。
有几种工具可以简化这个
,例如 Nexus Archiva
这减少了Maven
中央存储库的压力,并允许新的
用户更容易和更快地熟悉Maven
。对于高级用户和
公司来说,这尤其是
。这是
背后的激励,控制你自己的服务器
可以给你所需的安全级别
和更多的正常运行时间控制,
导致更好的体验
你的用户。话虽如此,请记住
以下情绪:

The best thing that a user can do is to set up their own remote repository mirror containing the projects needed. There are several tools to make this simpler, such as Nexus or Archiva. This reduces strain on the Maven central repository, and allows new users to get acquainted with Maven easier and quicker. This is especially important for power-users and corporations. The incentive behind this is, controlling your own servers can give you desired level of security and more control over uptime, resulting in a better experience for your users. With that said, keep the following sentiment in mind:

不要忘记整个存储!

请只带你需要的罐子。我们
明白这可能需要更多的
工作,但抓住所有9 + $
二进制文件真正杀死我们的服务器。

Please take only the jars you need. We understand this is may entail more work, but grabbing all 9+ Gigs of binaries really kills our servers.

作为对前一个
语句的扩展,如果您有权访问带有大量
带宽的
大型数据存储库,请考虑为Maven中央
存储库提供一个
镜像。

As an extention to the previous statement, if you have access to a large data repository with lots of bandwidth, please consider becomming a mirror for the Maven central repository.

你可以想象,成千上万的用户
下载可以放
一台服务器上的压力很大。如果您希望成为
镜像,请在
Maven项目管理中提交请求 JIRA
项目。

As you can imagine, thousands of users downloading can put quite a strain on one server. If you wish to be a mirror, please file a request in the Maven Project Administration JIRA project.

如果您有任何项目您希望
其他人使用,将它们托管在您自己的
公共存储库中。这样,您的
用户可以简单地将您的存储库
添加到他们自己的项目仓库列表中,并且
中提琴! Maven可以让您和您的
用户保持同步,增加您的用户基础
仅仅因为新发现的
使用的简易性。

If you have any projects that you wish others to use, host them on your own public repository. That way, your users can simply add your repository to their own project repo list, and viola! Maven can keep you and your users in synch, growing your user-base due simply to its new-found ease of use.

也许如果你解释为什么你想要在%USERPROFILE%中获得整个中央回购>我可以提供更好的答案(如果你需要离线,那么有更聪明的解决方案,而不是获得9件以上的工件。但就目前而言,我不明白这一点。

Maybe if you explain why you'd like to get the whole central repo in %USERPROFILE% I could provide a better answer (if you you need to go offline, there are smarter solutions than getting 9+ gigs of artifacts). But for now, I don't get the point.

这篇关于将完整的maven远程存储库下载到本地存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆