Le Sat, 28 Aug 2010 16:22:29 +0200, Simone Tripodi <simone.trip...@gmail.com> a écrit :
> Hi all guys, > a friend of mine and I are developing a maven plugin that needs to > acces to a server credentials specified in the settings.xml; no > problem since the org.apache.maven.settings.Server class exposes > methods to retrieve username/password, the problem comes when > passwords are encrypted using the method described in the > guide-encryption[1]. > How can we decrypt the password inside the plugin code? Thanks in advance! Otherwise you change the goal share-server-secret of the org.nuiton:maven-helper-plugin which does it for you and make it avaible in your maven build. [2] and [3] And look at the code of mojo as well :) [4] > All the best, > Simo > > [1] http://maven.apache.org/guides/mini/guide-encryption.html [2] http://repo2.maven.org/maven2/org/nuiton/maven-helper-plugin/1.2.6/ [3] http://maven-site.nuiton.org/maven-helper-plugin/share-server-secret-mojo.html [4] http://www.nuiton.org/repositories/entry/maven-helper-plugin/tags/maven-helper-plugin-1.2.6/src/main/java/org/nuiton/helper/plugin/ShareServerSecretPlugin.java > > http://people.apache.org/~simonetripodi/ > http://www.99soft.org/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Tony Chemit -------------------- tél: +33 (0) 2 40 50 29 28 email: che...@codelutin.com http://www.codelutin.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org