embedmongo-maven-plugin icon indicating copy to clipboard operation
embedmongo-maven-plugin copied to clipboard

Add compatibility with latest MongoDB

Open marvec opened this issue 5 years ago • 4 comments

MongoDB 3.6 and older cannot be even downloaded by the plugin because there isn't the version without SSL available anymore and the plugin tries to use wrong file name. There is no way to override the file name.

marvec avatar Aug 13 '18 15:08 marvec

Is this a problem that needs to be solved in flapdoodle-oss/de.flapdoodle.embed.mongo?

joelittlejohn avatar Aug 13 '18 15:08 joelittlejohn

Is there a way in this plugin to enable features of flapdoodle like ONLY_WINDOWS_2008_SERVER and ONLY_WITH_SSL? I'm in the process of upgrading from 3.4 to 4.0 and I'm unable to use this plugin anymore. I get the following error since the URL is not build correctly on Windows 10. [ERROR] Failed to execute goal com.github.joelittlejohn.embedmongo:embedmongo-maven-plugin:0.4.1:start (start) on project ilm-dm-dal-mongodb-it: Failed to download MongoDB distribution: GenericFeatureAwareVersion{4.0.2}:Windows:B64: java.io.IOException: Could not open inputStream for http://downloads.mongodb.org/win32/mongodb-win32-x86_64-4.0.2.zip: Server returned HTTP response code: 403 for URL: http://downloads.mongodb.org/win32/mongodb-win32-x86_64-4.0.2.zip -> [Help 1] Or is there any other way to make it work?

mgaceanu avatar Jul 31 '19 08:07 mgaceanu

I tried to add this functionality in PR #84. @joelittlejohn please let me know if it's alright... Basically if this PR is merged you can add in the config the flapdoodle features you want to be enabled. With the following features activated I can now download and start MongoDB 4.0.10 <features>ONLY_WITH_SSL, ONLY_WINDOWS_2008_SERVER, NO_HTTP_INTERFACE_ARG</features>

mgaceanu avatar Aug 01 '19 11:08 mgaceanu

Any updates on this issue? We have updated to mongodb 4.2 but our integration tests are still using 3.4 because thats all this plugin supports. Thanks!

rkaltreider avatar Aug 22 '19 13:08 rkaltreider