Tips

Maven Wagon SSH: public key with passphrase

We created a short patch to the Maven Wagon SSH provider. The standard provider allows you to use a passphrase, but it has to reside (in clear text) in your settings.xml file. To avoid this problem, if the passphrase is an empty string, the modified version of the wagon will prompt you for the passphrase in a Swing options pane.

You can apply the patch to the Wagon SSH source code (we used the 1.0-beta-2 version as the base), or add the following snippet to your POM files to use the binary artifact. › Continue reading

Wednesday, November 12th, 2008 Maven, Tips No Comments