mvn deploy fails.

Ian Boston <[email protected]> Mon, 12 Sep 2016 16:52:59 +0100
Newsgroups gmane.comp.jakarta.repository
Message-ID <CAH=Gj-nRcactba5bhg4e6BXGkfyR3BD2hgLQ=O3u=1PGWUBbKg@mail.gmail.com>
--94eb2c073df8902bad053c517ddb
Content-Type: text/plain; charset=UTF-8

Hi,
I am trying to test my setup to do a release for sling as recommended at [0]
I can login to [1]. I can see the staging repository and artifacts being
released by others. I have released using repository.apache.org but it was
a long time ago, before people.apache.org became sftp only.

I have setup (and double checked) ~/.m2/settings.xml, verified that they
are being picked.
I am using mvn -ep, but even with a clear text password

When I try mvn deploy I get

[WARNING] Encountered issue during deployment: Failed to deploy artifacts:
Could not transfer artifact
org.apache.sling:org.apache.sling.engine:jar:2.6.3-20160912.150940-1
from/to apache.snapshots.https (
https://repository.apache.org/content/repositories/snapshots): Failed to
transfer file:
https://repository.apache.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.engine/2.6.3-SNAPSHOT/org.apache.sling.engine-2.6.3-20160912.150940-1.jar.
Return code is: 401, ReasonPhrase: Unauthorized.


Judging by the stack trace its using

        at
org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)


which was configured with

DEBUG] Using transporter WagonTransporter with priority -1.0 for
https://repository.apache.org/content/repositories/snapshots

[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for
https://repository.apache.org/content/repositories/snapshots with
username=ieb, password=***


Any ideas ?


Best Regards
Ian

0 http://www.apache.org/dev/publishing-maven-artifacts.html#publish-snapshot
1 https://repository.apache.org

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

<div dir=3D"ltr">Hi,<div>I am trying to test my setup to do a release for s=
ling as recommended at [0]</div><div>I can login to [1]. I can see the stag=
ing repository and artifacts being released by others. I have released usin=
g <a href=3D"http://repository.apache.org">repository.apache.org</a> but it=
 was a long time ago, before <a href=3D"http://people.apache.org">people.ap=
ache.org</a> became sftp only.</div><div><br></div><div>I have setup (and d=
ouble checked) ~/.m2/settings.xml, verified that they are being picked.</di=
v><div>I am using mvn -ep, but even with a clear text password</div><div><b=
r></div><div>When I try mvn deploy I get=C2=A0</div><div><br></div><div>







<p class=3D"gmail-p1"><span class=3D"gmail-s1">[WARNING] Encountered issue =
during deployment: Failed to deploy artifacts: Could not transfer artifact =
org.apache.sling:org.apache.sling.engine:jar:2.6.3-20160912.150940-1 from/t=
o apache.snapshots.https (<a href=3D"https://repository.apache.org/content/=
repositories/snapshots">https://repository.apache.org/content/repositories/=
snapshots</a>): Failed to transfer file: <a href=3D"https://repository.apac=
he.org/content/repositories/snapshots/org/apache/sling/org.apache.sling.eng=
ine/2.6.3-SNAPSHOT/org.apache.sling.engine-2.6.3-20160912.150940-1.jar">htt=
ps://repository.apache.org/content/repositories/snapshots/org/apache/sling/=
org.apache.sling.engine/2.6.3-SNAPSHOT/org.apache.sling.engine-2.6.3-201609=
12.150940-1.jar</a>. Return code is: 401, ReasonPhrase: Unauthorized.</span=
></p><p class=3D"gmail-p1"><span class=3D"gmail-s1"><br></span></p><p class=
=3D"gmail-p1"><span class=3D"gmail-s1">Judging by the stack trace its using=
</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">







</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0 =C2=A0 =C2=
=A0 =C2=A0=C2=A0at org.eclipse.aether.connector.basic.BasicRepositoryConnec=
tor$TaskRunner.run(BasicRepositoryConnector.java:350)</span></p><p class=3D=
"gmail-p1"><span class=3D"gmail-s1"><br></span></p><p class=3D"gmail-p1"><s=
pan class=3D"gmail-s1">which was configured with=C2=A0</span></p><p class=
=3D"gmail-p1"><span class=3D"gmail-s1">DEBUG] Using transporter WagonTransp=
orter with priority -1.0 for <a href=3D"https://repository.apache.org/conte=
nt/repositories/snapshots">https://repository.apache.org/content/repositori=
es/snapshots</a></span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">[=
DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for <a hr=
ef=3D"https://repository.apache.org/content/repositories/snapshots">https:/=
/repository.apache.org/content/repositories/snapshots</a> with username=3Di=
eb, password=3D***</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1"=
>









</span></p><p class=3D"gmail-p1"><br></p><p class=3D"gmail-p1">Any ideas ?<=
/p><p class=3D"gmail-p1"><br></p><p class=3D"gmail-p1">Best Regards<br>Ian<=
/p></div><div><br></div><div>0=C2=A0<a href=3D"http://www.apache.org/dev/pu=
blishing-maven-artifacts.html#publish-snapshot">http://www.apache.org/dev/p=
ublishing-maven-artifacts.html#publish-snapshot</a></div><div>1=C2=A0<a hre=
f=3D"https://repository.apache.org">https://repository.apache.org</a></div>=
<div><br></div></div>

--94eb2c073df8902bad053c517ddb--