你把 ivysettings.xml 放在哪里? [英] where do you put ivysettings.xml?
问题描述
我正在尝试学习如何使用 ivy,并想为我下载的 .jar 文件设置一个本地存储库.
I'm trying to learn how to use ivy and would like to setup a local repository of the .jar files I've downloaded.
您将 ivysettings.xml 文件放在哪里?放在ant库目录下吗?
Where do you put the ivysettings.xml file? Does it go in the ant library directory?
推荐答案
如果您允许我澄清一下,ivysettings.xml
是整个开发环境的配置.它与存储库项目本身不相关.一般来说,ivysettings.xml
应该放在你的主要 build.xml
旁边,这样当你把
If you'll allow me to clarify, the ivysettings.xml
is the configuration of your development environment as a whole. It is not related to the repository items themselves. Generally speaking, ivysettings.xml
should sit alongside your main build.xml
, so that when you put
<ivy:settings file="ivysettings.xml"/>
在你的 build.xml
中,它只是在当前目录中找到它.
in your build.xml
, it just finds it in the current directory.
此文件与描述存储库中各种模块的 ivy.xml
文件完全不同.这些与存储库中已发布的工件并排.
This file is completely distinct from the ivy.xml
files that describe the various modules in your repository. These sit alongside the published artifacts in the repo.
这篇关于你把 ivysettings.xml 放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!