简体   繁体   English

MongoDB Java驱动程序:如何获取开发版本

[英]MongoDB Java driver: how to get development version

Latest stable release of MongoDB Java Driver ( v3.2 ) has a bug related to adding a List to an existing Document (cf here ). MongoDB Java驱动程序( v3.2 )的最新稳定版本存在一个与将列表添加到现有文档有关的错误(请参见此处 )。

The bug seems to be solved in v3.3.0 but this version is not yet released: how can I download (and compile) this latest version (which seems to be on github)? 该错误似乎已在v3.3.0中解决,但尚未发布该版本:如何下载(并编译)该最新版本(似乎在github上)?

Many thanks, Tom 非常感谢,汤姆

UPDATE: 更新:

Dev version seems not available on git (see Eclipse screenshot): Dev版本似乎在git上不可用(请参阅Eclipse屏幕截图): 在此处输入图片说明

You can check out the project and generate the lib (export as jar) and import it... BUT... consider the fact that if that version has not been rolled out is because is not completely developed, or not completely tested, 您可以检出项目并生成lib(导出为jar)并将其导入...但是...请考虑以下事实:如果尚未发布该版本是因为尚未完全开发或未完全测试,

so in my opinion you should wait an not fix a bug but taking the risk of porting to your project new bugs or security issues... 因此,我认为您应该等待一个未修复的错误,但要冒将新错误或安全问题移植到项目中的风险...

There is a new version 3.2.2. 有一个新的版本3.2.2。 Does this help? 这有帮助吗?

According to https://github.com/mongodb/mongo-java-driver/releases , The 3.2.2 MongoDB Java Driver is a patch to the 3.2.0 release. 根据https://github.com/mongodb/mongo-java-driver/releases的说法,3.2.2 MongoDB Java驱动程序是3.2.0版本补丁。

<dependencies>
    <dependency>
        <groupId>org.mongodb</groupId>
        <artifactId>mongodb-driver</artifactId>
        <version>3.2.2</version>
    </dependency>
</dependencies>

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

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