joelittlejohn / embedmongo-maven-plugin

Maven plugin wrapper for the flapdoodle.de embedded MongoDB API
Apache License 2.0
88 stars 51 forks source link

Add compatibility with latest MongoDB #81

Open marvec opened 6 years ago

marvec commented 6 years ago

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.

joelittlejohn commented 6 years ago

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

mgaceanu commented 5 years ago

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 commented 5 years ago

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>

rkaltreider commented 5 years ago

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!