艾维自定义解析器的混帐或TFS [英] Ivy Custom Resolvers for Git or TFS
问题描述
我是相当新的常春藤,所以也许有,我不是能够在文件或什么,我希望在找到一个直接的方式是不可能的,但在这里不用。我希望能够以指定源$ C $ C位于使用不同协议的本地和/或远程服务器的依赖关系。
具体来说,我有一个存储在本地网络上的某些项目依赖的 TFS 服务器和存储在远程的的Git 服务器(更多precisely额外的项目依赖 www.github.com
)。是否有可能有常春藤下载源$ C $ c和建立的 JAR 的那么这将被用来作为依赖文件?如果是这样,怎么样?
这是不可能或将需要严重的黑客。常春藤的设计要下载的已编译的依赖。对于任何现代构建管理工具(Maven的,常春藤,摇篮等),你永远是最好坚持公约的可能时。您精心因循守旧流浪越远,越疼你要会自己到底。 P>
为什么你需要下载和动态编译code?如果你只是想有源$ C $ C可用于调试的目的,的这个问题可能会有帮助。如果原因是因为你总是希望无论是签入您的VCS绝对尖端的版本,你会过得更好设置某种持续构建产生的文物为你的。
I'm fairly new to Ivy, so perhaps there's a straight forward way that I'm not able to find in the documentation or what I'm looking for is not possible, but here goes. I want to be able to specify dependencies where the source code is located on local and/or remote servers which use different protocols.
Specifically, I have some project dependencies that are stored on a local network TFS server and additional project dependencies stored on a remote Git server (more precisely www.github.com
). Is it possible to have Ivy download the source code and build a jar file which would then be used as the dependency? If so, how?
This is either impossible or would require serious hacks. Ivy is designed to download dependencies which have already been compiled. With any of the modern build management tools (Maven, Ivy, Gradle, etc.) you are always better off sticking to convention when possible. The farther you stray from the well-beaten path, the more pain you are going to cause yourself in the end.
Why do you need to download and compile the code dynamically? If you just want to have the source code available for debugging purposes, this question may help. If the reason is because you always want the absolute bleeding edge version of whatever is checked into your VCS, you would be better off setting up some sort of continuous build which produces your artifacts for you.
这篇关于艾维自定义解析器的混帐或TFS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!