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.

...
<repositories>
    <repository>
        <id>ServeBox.org</id>
        <name>ServeBox Repository</name>
        <url>http://maven.servebox.org/repository</url>
    </repository>
</repositories>
...
<build>
...
 
        <extensions>
...
            <extension>
                <groupId>org.servebox.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>1.0-passphrase-beta2</version>
            </extension>
        </extensions>
</build>
Print This Post Print This Post Wednesday, November 12th, 2008 Maven, Tips by Jeff Mathiot

No comments yet.

Leave a comment

You must be logged in to post a comment.