joelittlejohn / embedmongo-maven-plugin

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

What if I'm behind a password authenticated proxy? #10

Closed rmarpozo closed 11 years ago

rmarpozo commented 11 years ago

Is there anyway to tell the plugin where mongodb is rather that letting the plugin download it itself? I'm behind a password authenticated proxy and I'm having problems making the plugin work

joelittlejohn commented 11 years ago

@rmarpozo could you try removing all proxy details from your pom then set the following on the command line:

-Dhttp.proxyHost=yourhost 
-Dhttp.proxyPort=yourport
-Dhttp.proxyUser=youruser
-Dhttp.proxyPassword=yourpassword

I believe the above should work, it's the standard way to set proxy auth details in Java.

joelittlejohn commented 11 years ago

It's also possible to put the files into the cache yourself, this will cause the plugin to skip the download step and use the files you've provided. For Linux the files are stored here:

~/.embedmongo/linux/mongodb-linux-x86_64-2.0.4.tgz

You'll need to download the file and name it correctly (according to OS, architecture, mongo version).

rmarpozo commented 11 years ago

Ok, I'll try to set the user and password at the JVM and see what happens

Thanks

joelittlejohn commented 11 years ago

Resolved by PR #11 - thanks!