Re: mvn deploy fails.

Ian Boston <[email protected]> Tue, 13 Sep 2016 08:13:09 +0100
Newsgroups gmane.comp.jakarta.repository
Message-ID <CAH=Gj-=T9BcFn9t7D873ofRF_y_615henYWJkoir4extWynGtw@mail.gmail.com>
--001a1140479256006f053c5e5842
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,
Found the problem.

I had a UTF-8 char in my password identified by echo <password> | od -a
producing 2 ? chars in the output. The terminal is UTF-8 capable since echo
<password> | od -x reports the correct UTF-8 sequence. SInce authN will be
base64 encoded, and the logging via the browser works there may be
something wrong with the way maven processes setting.xml or decryption of
passwords as both clear text and encrypted passwords fail.

Removing the UTF-8 char from my password has fixed the problem.

Best Regards
Ian

On 12 September 2016 at 18:43, Lukasz Lenart <[email protected]>
wrote:

> 2016-09-12 17:52 GMT+02:00 Ian Boston <[email protected]>:
> > I have setup (and double checked) ~/.m2/settings.xml, verified that the=
y
> are
> > being picked.
> > I am using mvn -ep, but even with a clear text password
>
> You meant this:
>
> <settings>
> ...
>   <servers>
>     <!-- To publish a snapshot of some part of Maven -->
>     <server>
>       <id>apache.snapshots.https</id>
>       <username> <!-- YOUR APACHE LDAP USERNAME --> </username>
>       <password> <!-- YOUR APACHE LDAP PASSWORD (encrypted) --> </passwor=
d>
>     </server>
>     <!-- To stage a release of some part of Maven -->
>     <server>
>       <id>apache.releases.https</id>
>       <username> <!-- YOUR APACHE LDAP USERNAME --> </username>
>       <password> <!-- YOUR APACHE LDAP PASSWORD (encrypted) --> </passwor=
d>
>     </server>
>    ...
>   </servers>
> </settings>
>
> ?
>
> Does your pom.xml use Apache's parent?
>
> <parent>
>     <groupId>org.apache</groupId>
>     <artifactId>apache</artifactId>
>     <version>16</version>
> </parent>
>
>
> Regards
> --
> =C5=81ukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>

--001a1140479256006f053c5e5842
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div>Found the problem.</div><div><br></div><div>I had =
a UTF-8 char in my password identified by echo &lt;password&gt; | od -a pro=
ducing 2 ? chars in the output. The terminal is UTF-8 capable since echo &l=
t;password&gt; | od -x reports the correct UTF-8 sequence. SInce authN will=
 be base64 encoded, and the logging via the browser works there may be some=
thing wrong with the way maven processes setting.xml or decryption of passw=
ords as both clear text and encrypted passwords fail.</div><div><br></div><=
div>Removing the UTF-8 char from my password has fixed the problem.</div><d=
iv><br></div><div>Best Regards</div><div>Ian</div></div><div class=3D"gmail=
_extra"><br><div class=3D"gmail_quote">On 12 September 2016 at 18:43, Lukas=
z Lenart <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><span class=3D"">2016-09-12 17:52 GMT+02:00 Ian Bosto=
n &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt;:<b=
r>
&gt; I have setup (and double checked) ~/.m2/settings.xml, verified that th=
ey are<br>
&gt; being picked.<br>
&gt; I am using mvn -ep, but even with a clear text password<br>
<br>
</span>You meant this:<br>
<br>
&lt;settings&gt;<br>
...<br>
=C2=A0 &lt;servers&gt;<br>
=C2=A0 =C2=A0 &lt;!-- To publish a snapshot of some part of Maven --&gt;<br=
>
=C2=A0 =C2=A0 &lt;server&gt;<br>
=C2=A0 =C2=A0 =C2=A0 &lt;id&gt;apache.snapshots.https&lt;/<wbr>id&gt;<br>
=C2=A0 =C2=A0 =C2=A0 &lt;username&gt; &lt;!-- YOUR APACHE LDAP USERNAME --&=
gt; &lt;/username&gt;<br>
=C2=A0 =C2=A0 =C2=A0 &lt;password&gt; &lt;!-- YOUR APACHE LDAP PASSWORD (en=
crypted) --&gt; &lt;/password&gt;<br>
=C2=A0 =C2=A0 &lt;/server&gt;<br>
=C2=A0 =C2=A0 &lt;!-- To stage a release of some part of Maven --&gt;<br>
=C2=A0 =C2=A0 &lt;server&gt;<br>
=C2=A0 =C2=A0 =C2=A0 &lt;id&gt;apache.releases.https&lt;/id&gt;<br>
=C2=A0 =C2=A0 =C2=A0 &lt;username&gt; &lt;!-- YOUR APACHE LDAP USERNAME --&=
gt; &lt;/username&gt;<br>
=C2=A0 =C2=A0 =C2=A0 &lt;password&gt; &lt;!-- YOUR APACHE LDAP PASSWORD (en=
crypted) --&gt; &lt;/password&gt;<br>
=C2=A0 =C2=A0 &lt;/server&gt;<br>
=C2=A0 =C2=A0...<br>
=C2=A0 &lt;/servers&gt;<br>
&lt;/settings&gt;<br>
<br>
?<br>
<br>
Does your pom.xml use Apache&#39;s parent?<br>
<br>
&lt;parent&gt;<br>
=C2=A0 =C2=A0 &lt;groupId&gt;org.apache&lt;/groupId&gt;<br>
=C2=A0 =C2=A0 &lt;artifactId&gt;apache&lt;/<wbr>artifactId&gt;<br>
=C2=A0 =C2=A0 &lt;version&gt;16&lt;/version&gt;<br>
&lt;/parent&gt;<br>
<br>
<br>
Regards<br>
<span class=3D"HOEnZb"><font color=3D"#888888">--<br>
=C5=81ukasz<br>
<a href=3D"tel:%2B%2048%20606%20323%20122" value=3D"+48606323122">+ 48 606 =
323 122</a>=C2=A0<a href=3D"http://www.lenart.org.pl/" rel=3D"noreferrer" t=
arget=3D"_blank">http://www.lenart.org.pl/</a><br>
</font></span></blockquote></div><br></div>

--001a1140479256006f053c5e5842--