[英]How to fill my lib folder from jar files located in different svn repositories?
I have structured my jave project as: 我将我的jave项目构造为:
MyProejct
- src
- build
- test
- lib
- ..
In the root of my lib folder, I've placed all of my external .jar files (hibernate, jboss, etc). 在我的lib文件夹的根目录中,我放置了所有外部.jar文件(休眠,jboss等)。 Now I have decided to move all my third-party jar files into another repo (Namely Lib) and have them on my lib folder while checking out the project. 现在,我决定将我所有的第三方jar文件移动到另一个存储库(即Lib)中,并在检出项目时将它们放在我的lib文件夹中。 I've used svn:externals to do this. 我用svn:externals来做到这一点。 I have created my Lib repo like the following: 我已经创建了如下的Lib库:
Lib Repository
- hibernate
- jsf
- junit
- ...
Why when I refer these jar files using svn:external property to different folders in my Lib repo, only .jar files in my last external property are checked out? 为什么当我使用svn:external属性将这些jar文件引用到Lib存储库中的其他文件夹时,仅检出我最后一个外部属性中的.jar文件?
It is not possible to have many files in a folder coming from different repositories using externals. 使用外部组件,文件夹中不可能有来自不同存储库的许多文件。 The best way to do this is to keep each .jar file in its own folder and update the content of that folder by its relevant external property. 最好的方法是将每个.jar文件保留在其自己的文件夹中,并通过其相关的外部属性更新该文件夹的内容。
svn:externals是版本控制的属性 ,因此,您将获得文件,该文件与svn:externals的状态相关联,用于当前工作副本的修订版
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.