创建一个私人远程常春藤储存库 [英] Create a Private Remote Ivy Repository

查看:133
本文介绍了创建一个私人远程常春藤储存库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在进行相当多的搜索,无法将所有的东西放在一起。我想在我们的一台服务器上创建一个常青藤资源库。我想锁定它,所以它是私人的,然后能够从Gradle发布到这个存储库。

I've been doing quite a bit of searching and am unable to put all the pieces together. I want to create an ivy repository on one of our servers. I want to lock it down so it is private, and then be able to publish to this repository from Gradle.

我知道如何使用Gradle发布,并且我拥有使用Gradle创建的本地ivy文件系统:

I know how to publish using Gradle, and I have that working with a local ivy file system that Gradle creates:

repositories {
  mavenCentral()
  ivy {
    name "localRepos"
    url "${System.properties['user.home']}/repos"
  }
}

uploadArchives {
  repositories {
    add project.repositories.localRepos
  }
}

所以我现在需要做的是将其转化为发布到远程私人回购站。但首先,显然,我需要创建该回购协议,而且我似乎无法从常春藤文档或Google搜索中找出这一点。有人可以指出我正确的方向吗?

So what I need to do now is translate that into publishing to a remote private repos. But first, obviously, I need to create that repos and I can't seem to figure that out from the Ivy documentation or Google searching. Can someone point me in the right direction?

我宁愿不必去掉Nexus等方法(不Maven)。

I'd prefer not to have to go down the Nexus, etc approach (no Maven).

推荐答案

常青藤资源库只是一个文件存储库,因此您需要设置一个服务器(例如Apache httpd),以允许读取和写入这些文件(例如,通过HTTP GET / PUT)。不过,我强烈建议使用存储库管理器。 Artifactory 是一个不错的选择。

An Ivy repository is just a file store, and hence you need to set up a server (e.g. Apache httpd) that allows to read and write those files (e.g. via HTTP GET/PUT). However, I strongly recommend to use a repository manager. Artifactory is a good choice.

这篇关于创建一个私人远程常春藤储存库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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