I never encountered this problem, but I think & is a special token on the
Windows command line. Put a caret in front of it to see if it escapes it
properly: ^&


On Thu, Sep 26, 2013 at 9:17 AM, djeanprost <
[email protected]> wrote:

> Hello,
>
> I'm trying to use maven password encryption feature.
> My problem is that the password I'm trying to encrypt contains the
> charatcter "&" (ampersand). Because of this, the command line does not work
> ran in Windows cli.
>
> C:\outillivraison\outillivraison-1.0-beta2>mvn --encrypt-password toto&titi
> {Crgi2Ua6uJkHCId5ol73dXfwHsoecIEAN+oCl0Ejh50=}
> 'titi' n'est pas reconnu en tant que commande interne
> ou externe, un programme exécutable ou un fichier de commandes.
>
> I tried to add quotes, but I can't manage to to make it work
>
> C:\outillivraison\outillivraison-1.0-beta2>mvn --encrypt-password toto
> {DhN9VJ29e4QHksWV5dh9UrPL5LwrGbv119x9ptOlNpQ=}
> C:\outillivraison\outillivraison-1.0-beta2>mvn --encrypt-password "toto"
> {wAmp4BzifcMH0FjCCnmccIZeCLBI4dGL3eWz07zGomc=} <-- not the same value than
> previous one : quotes do not work
>
> C:\outillivraison\outillivraison-1.0-beta2>mvn --encrypt-password 'toto'
> {pv3FYsX7mzMHgHqUpym1TQBcFtnL+TRI7ouyIO1oAag=} <-- again, not the same
> value
>
> Can someone help me please ? Should I fill a jira ?
> Thank you
> Dom
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Problem-with-encrypt-password-if-password-contains-tp5771921.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Cheers,
Paul

Reply via email to