Dan,

 

i think we have to use this dependency

<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-sec-dispatcher</artifactId>
<version>1.4</version>
</dependency>

 

 
> Date: Thu, 18 Feb 2010 13:29:49 -0800
> From: [email protected]
> To: [email protected]
> Subject: [mojo-dev] How to decrypt the password in settings.xml [WAS] 
> password encryption for maven-sql-plugin?
> 
> Hi
> 
> is there an code example how to decrypt the password stored in settings.xml
> 
> Thanks
> 
> -Dan
> ---------- Forwarded message ----------
> From: Dan Tran <[email protected]>
> Date: Thu, Feb 18, 2010 at 11:40 AM
> Subject: Re: password encryption for maven-sql-plugin?
> To: "Poku, Adjoa M." <[email protected]>
> 
> 
> please file a bug at http://jira.codehaus.org/browse/MSQL
> 
> 
> 
> On Thu, Feb 18, 2010 at 11:37 AM, Poku, Adjoa M. <[email protected]> 
> wrote:
> > Dan, thanks for quick response.
> >
> > Yes, we use that technique for access to our maven repositories on a remote 
> > server.
> >
> > With the sql-plugin, my plain text password works, but once I swap it with 
> > the encrypted representation generated by "mvn -ep" I get 
> > MojoExecutionExceptions. Meanwhile, I am still able to access our maven 
> > repository using my encrypted passwords (I did regenerate all passwords I 
> > am using to make sure all were produced from the same "master" password)
> >
> > More details of the error I get:
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Access denied 
> > for user 'xxxx'@'localhost' (using password: YES)
> >        at org.codehaus.mojo.sql.SqlExecMojo.execute(SqlExecMojo.java:583)
> >        at 
> > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
> >        ... 22 more
> > Caused by: java.sql.SQLException: Access denied for user 'xxxx'@'localhost' 
> > (using password: YES)
> >
> >
> >
> >
> > -----Original Message-----
> > From: Dan Tran [mailto:[email protected]]
> > Sent: Thursday, February 18, 2010 2:12 PM
> > To: Poku, Adjoa M.
> > Subject: Re: password encryption for maven-sql-plugin?
> >
> > have you tried this
> > http://maven.apache.org/guides/mini/guide-encryption.html ??
> >
> > In theory, sql-plugin should work with maven password convention.
> >
> > -D
> >
> > On Thu, Feb 18, 2010 at 11:06 AM, Poku, Adjoa M. <[email protected]> 
> > wrote:
> >> Hi,
> >>
> >>
> >>
> >> First, apologies if this is the wrong method of contact but I was not able
> >> to enter a request via JIRA?
> >>
> >>
> >>
> >> I am running into trouble using encrypted passwords with the
> >> maven-sql-plugin. Is this feature supported? If so, how should it be
> >> configured? I am currently ‘hiding the password’ in my settings.xml file as
> >> described here:
> >>
> >>    http://mojo.codehaus.org/sql-maven-plugin/examples/settings.html
> >>
> >>
> >>
> >> Everything works fine if I put the password in plain text, but in our
> >> department we are not allowed to store passwords in plain text…
> >>
> >>
> >>
> >> I looked online, but was not able to find any conclusive information
> >> regarding the sql-plugin and support for password encryption.
> >>
> >>
> >>
> >> Thanks,
> >>
> >>
> >>
> >>
> >>
> >> Adjoa M. Poku
> >>
> >> Software Engineer
> >>
> >> Johns Hopkins University Applied Physics Laboratory
> >>
> >> 11100 Johns Hopkins Road
> >>
> >> MP6-N476 Laurel, MD 20723-6099
> >>
> >>
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
> http://xircles.codehaus.org/manage_email
> 
> 
                                          
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to