管理冲突的常春藤仓库(在日食中) [英] Managing conflicting ivy repositories (in eclipse)

查看:135
本文介绍了管理冲突的常春藤仓库(在日食中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有全职工作的日食工作空间和我的家庭测试工作,都是用ivy(和使用ivyDE)设置的。

I've got eclipse workspaces for my full time job and my home test work that are both set up with ivy (and using ivyDE).

然而,我'发现我在不同的工作区之间变得奇怪的行为和冲突 - 无法找到某些依赖关系或者不编译等问题。

However, I'm finding that I'm getting strange behaviour and conflicts between the different workspaces - issues like not being able to find certain dependencies, or not compiling etc.

有没有方式在常春藤或ivyDE设置家庭 .ivy2 目录,以便我可以拆分我的工作区?目前,我为 .ivy2 缓存交替使用不同的目录。

Is there a way in ivy or ivyDE to set the home .ivy2 directory so that I can split my workspaces? At the moment, I'm alternating different directories for my .ivy2 cache.

推荐答案

我想您正在寻找缓存指令在您的 ivysettings.xml 文件

I think you're looking for the caches directive in your ivysettings.xml file

您不清楚您遇到了哪些错误。我遇到的最大的问题是防火墙和使用公司的maven存储库,在家中建立代码时不可用。

You're not clear on what sorts of errors you're experiencing. Biggest problems I've experienced have been fire-walling and the use of a corporate maven repository that is unavailable when building code at home.

不应该依赖缓存您的依赖关系的主副本。您的缓存需要定期刷新,以确保所有依赖关系正确解决(此问题可以隐藏构建错误)

Caches should not be relied upon as the master copy of your dependencies. Your cache needs to be periodically refreshed to ensure that all dependencies are being resolved correctly (This problem can hide build errors)

我怀疑您可能还会尝试将jars工作和家庭通过预先填充缓存?我曾经这样做,直到我学会了如何构建本地存储库(参见构建存储库)来保存我从公共maven存储库中不可用的公司依赖。

I suspect you might also be trying to port jars between work and home by pre-populating a cache? I used to do this until I learnt how to build a local repository (See Building a Repository) to hold my corporate dependencies that are unavailable from public maven repositories.

这篇关于管理冲突的常春藤仓库(在日食中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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