Maven内部存储库,真的很难吗? [英] Maven Internal Repository, Is it Really This Hard?

查看:89
本文介绍了Maven内部存储库,真的很难吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个使用Maven的项目,我想在我的工作网络上运行一个内部存储库.我有一些第三方提供的库,它们无法发布,还有我们自己的一些库,这些库需要在网络中可用(包括TeamCity CI Server),但不能在网络外部部署.经过一番研究,我发现了有关完成此操作的三个主要建议:Archiva,Artifactory和Nexus.我已经尝试了每个项目,但是都无法使用由任何项目创建的内部存储库成功构建我的任何项目.

I have several projects which use Maven and I would like to run an internal repository on my work network. I have several libraries which are from third parties and cannot be released into the wild, as well as a few libraries of our own which need to be available within the network (including to our TeamCity CI Server) but cannot be deployed outside the network. After a bit of research, I found three main recommendations on how to accomplish this: Archiva, Artifactory, and Nexus. I have tried each, and have failed to achieve a successful build of any of my projects using the internal repositories created by any of them.

这使我相信我误解了某件事或做错了什么.有谁知道一个可以指导我完成设置和内部Maven存储库并将其与我的项目集成的教程?

This leads me to believe that I am misunderstanding something or doing something wrong. Does anyone know of a tutorial that will walk me through setting up and internal Maven repository and integrate it with my project?

推荐答案

我建议使用 Nexus评估指南(最新的可用版本是 Nexus Pro安装程序,但也可以与 Nexus Open Source 一起使用,以实现代理的简单用例和部署组件.

I would suggest to use the Nexus evaluation guide (latest available version is 2.13 now) that comes with the Nexus Pro Installer, but also works with Nexus Open Source for the simple use cases of proxying and deploying components.

示例也可以在 github 上获得,并包括Maven,Ant/常春藤和摇篮.看完示例并阅读指南后,您将能够以相同的方式轻松地设置项目.

The examples are also available on github and include setups for Maven, Ant/Ivy and Gradle. Once you have a look at the examples and read the guide you will be able to set up your projects in the same way easily.

当然,如果有任何问题,您随时可以在邮件列表上询问或与开发人员聊天在街舞上

And of course if there is any problems you can always ask on the mailing list or chat with the developers on hipchat

这篇关于Maven内部存储库,真的很难吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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