Maven deploy to repository.a.o comes back with Forbidden

Márton Balassi <[email protected]> Sun, 28 Dec 2014 09:40:24 +0100
Newsgroups gmane.comp.jakarta.repository
Message-ID <CAKADb_M44ddFhQgnFqOL-36WWC6-=aKeOU6ng5q59HRPxE3y+g@mail.gmail.com>
--089e0160b7dab33191050b42b6e8
Content-Type: text/plain; charset=UTF-8

Hey,

I'm Marton, newbie release manager for freshly a graduated TLP, Flink.
I'm having an issue with the maven deploy to repository.a.o.

Even though I can login successfully on the webui, the maven deploy from a
cli gives me "Access denied to:
https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/flink/flink-parent/0.8.0-hadoop2/flink-parent-0.8.0-hadoop2.pom,
ReasonPhrase: Forbidden."

I have two guesses: maybe my credentials are wrong (I doubt that, added
them to the settings xml of maven) or perhaps I do not have the right to
create directories on the machine under repository.a.o.

To be more specific:

Command executed:

mvn clean deploy -Prelease,docs-and-source --settings deploysettings.xml
-DskipTests -Dgpg.executable=$GPG -Dgpg.keyname=$GPG_KEY
-Dgpg.passphrase=$GPG_PASSPHRASE -DretryFailedDeploymentCount=10 -X

Relevant verbose output:

[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
https://repository.apache.org/service/local/staging/deploy/maven2 as
mbalassi
Uploading:
https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/flink/flink-parent/0.8.0/flink-parent-0.8.0.pom
[WARNING] Encountered issue during deployment: Failed to deploy artifacts:
Could not transfer artifact org.apache.flink:flink-parent:pom:0.8.0 from/to
apache.releases.https (
https://repository.apache.org/service/local/staging/deploy/maven2): Access
denied to:
https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/flink/flink-parent/0.8.0/flink-parent-0.8.0.pom,
ReasonPhrase: Forbidden.
[DEBUG]
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to
deploy artifacts: Could not transfer artifact
org.apache.flink:flink-parent:pom:0.8.0 from/to apache.releases.https (
https://repository.apache.org/service/local/staging/deploy/maven2): Access
denied to:
https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/flink/flink-parent/0.8.0/flink-parent-0.8.0.pom,
ReasonPhrase: Forbidden.
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)

Any help on this would be welcome. Thanks in advance,

Marton

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

<div dir=3D"ltr">Hey,<div><br></div><div><div>I&#39;m Marton, newbie releas=
e manager for freshly a graduated TLP, Flink.</div><div>I&#39;m having an i=
ssue with the maven deploy to repository.a.o.=C2=A0</div><div><br></div><di=
v>Even though I can login successfully on the webui, the maven deploy from =
a cli gives me &quot;Access denied to: <a href=3D"https://repository.apache=
.org/service/local/staging/deploy/maven2/org/apache/flink/flink-parent/0.8.=
0-hadoop2/flink-parent-0.8.0-hadoop2.pom">https://repository.apache.org/ser=
vice/local/staging/deploy/maven2/org/apache/flink/flink-parent/0.8.0-hadoop=
2/flink-parent-0.8.0-hadoop2.pom</a>, ReasonPhrase: Forbidden.&quot;</div><=
div><br></div><div>I have two guesses: maybe my credentials are wrong (I do=
ubt that, added them to the settings xml of maven) or perhaps I do not have=
 the right to create directories on the machine under repository.a.o.</div>=
</div><div><br></div><div>To be more specific:</div><div><br></div><div>Com=
mand executed:</div><div><br></div><div>mvn=C2=A0clean deploy -Prelease,doc=
s-and-source --settings deploysettings.xml -DskipTests -Dgpg.executable=3D$=
GPG -Dgpg.keyname=3D$GPG_KEY -Dgpg.passphrase=3D$GPG_PASSPHRASE -DretryFail=
edDeploymentCount=3D10 -X</div><div><br></div><div>Relevant verbose output:=
</div><div><br></div><div><div>[DEBUG] Using connector WagonRepositoryConne=
ctor with priority 0 for <a href=3D"https://repository.apache.org/service/l=
ocal/staging/deploy/maven2">https://repository.apache.org/service/local/sta=
ging/deploy/maven2</a> as mbalassi</div><div>Uploading: <a href=3D"https://=
repository.apache.org/service/local/staging/deploy/maven2/org/apache/flink/=
flink-parent/0.8.0/flink-parent-0.8.0.pom">https://repository.apache.org/se=
rvice/local/staging/deploy/maven2/org/apache/flink/flink-parent/0.8.0/flink=
-parent-0.8.0.pom</a></div><div>[WARNING] Encountered issue during deployme=
nt: Failed to deploy artifacts: Could not transfer artifact org.apache.flin=
k:flink-parent:pom:0.8.0 from/to apache.releases.https (<a href=3D"https://=
repository.apache.org/service/local/staging/deploy/maven2">https://reposito=
ry.apache.org/service/local/staging/deploy/maven2</a>): Access denied to: <=
a href=3D"https://repository.apache.org/service/local/staging/deploy/maven2=
/org/apache/flink/flink-parent/0.8.0/flink-parent-0.8.0.pom">https://reposi=
tory.apache.org/service/local/staging/deploy/maven2/org/apache/flink/flink-=
parent/0.8.0/flink-parent-0.8.0.pom</a>, ReasonPhrase: Forbidden.</div><div=
>[DEBUG]=C2=A0</div><div>org.apache.maven.artifact.deployer.ArtifactDeploym=
entException: Failed to deploy artifacts: Could not transfer artifact org.a=
pache.flink:flink-parent:pom:0.8.0 from/to apache.releases.https (<a href=
=3D"https://repository.apache.org/service/local/staging/deploy/maven2">http=
s://repository.apache.org/service/local/staging/deploy/maven2</a>): Access =
denied to: <a href=3D"https://repository.apache.org/service/local/staging/d=
eploy/maven2/org/apache/flink/flink-parent/0.8.0/flink-parent-0.8.0.pom">ht=
tps://repository.apache.org/service/local/staging/deploy/maven2/org/apache/=
flink/flink-parent/0.8.0/flink-parent-0.8.0.pom</a>, ReasonPhrase: Forbidde=
n.</div><div><span class=3D"" style=3D"white-space:pre">	</span>at org.apac=
he.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDe=
ployer.java:141)</div></div><div><br></div><div>Any help on this would be w=
elcome. Thanks in advance,</div><div><br></div><div>Marton</div></div>

--089e0160b7dab33191050b42b6e8--