简体   繁体   English

Subversion 和 DBUnit - 如何下载特定的快照版本

[英]Subversion and DBUnit - How to download a specific snapshot version

I posted a question to the DBunit mailing list about an error I see when I compile my program.我在 DBunit 邮件列表中发布了一个关于编译程序时出现的错误的问题。 One of the response I get is shown below:我得到的回应之一如下所示:

Please try 2.4.9-SNAPSHOT (you will have to build from source; snapshots are not currently pre-built).请尝试 2​​.4.9-SNAPSHOT(您必须从源代码构建;当前未预构建快照)。 I believe commit 1209 fixes the problem you are experiencing:我相信 commit 1209 可以解决您遇到的问题:

I looked at the DBunit project and I can't figure out how to download this specific version.我查看了 DBunit 项目,但不知道如何下载此特定版本。 I tried this command but it comes back with a Does not exist error我试过这个命令,但它回来了Does not exist error

svn checkout https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunc/2.4.9-SNAPSHOT dbunit

I think the command is correct because if I try a release that does exist it does work.我认为该命令是正确的,因为如果我尝试一个确实存在的版本,它确实可以工作。 For example the following command works例如以下命令有效

svn checkout https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.8 dbunit

Looking at the online code browser I can't see an entry with the tag I want.查看在线代码浏览器,我看不到带有我想要的标签的条目。 See Example at http://dbunit.svn.sourceforge.net/viewvc/dbunit/请参阅http://dbunit.svn.sourceforge.net/viewvc/dbunit/ 中的示例

Does this mean that the 2.4.9-SNAPSHOT does not exist or am I doing it wrong?这是否意味着2.4.9-SNAPSHOT不存在还是我做错了?

Also, what does the SNAPSHOT label mean at the end of the release version?另外,发布版本末尾的 SNAPSHOT 标签是什么意思? I have seen this used quite a lot but not really sure what it means.我已经看到这个使用了很多,但不太确定它的含义。

Thanks谢谢

Just download the source code in specified revision:只需下载指定版本的源代码:

$ svn co https://dbunit.svn.sourceforge.net/svnroot/dbunit/trunk dbunit -r 1209
$ cd dbunit
$ mvn clean install

The 2.4.9-SNAPSHOT version should appear in your repository when the build finishes.构建完成后, 2.4.9-SNAPSHOT版本应出现在您的存储库中。 However I encounter some problems while building it, the com.oracle:ojdbc14:jar:10.2.0.4.0 cannot be found.但是我在构建它时遇到了一些问题, com.oracle:ojdbc14:jar:10.2.0.4.0 Consult library developers how to fix this.请咨询库开发人员如何解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM