Re: Forbidden Snapshot deployment on repository.apache.org

Karl Wright <[email protected]> Tue, 2 Dec 2014 07:29:29 -0500
Newsgroups gmane.comp.jakarta.repository
Message-ID <CALUFAGDFqwQhVjnpcH_+D=bGFViEVZ1aynYdk5eVHkfM17Ch5A@mail.gmail.com>
--001a11c1dcdeee9d9105093ae0a8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Lukasz,

ManifoldCF has a rather complicated build infrastructure already,
supporting both ant and maven builds, but we currently do not have a way of
delivering our maven-built artifacts to the central repo upon release.
We've been trying to get this to work using instructions such as this:

http://www.apache.org/dev/publishing-maven-artifacts.html#dev-env

Your suggestion to use Jenkins would be fine but it does not appear to
allow signing of artifacts, or use of an alternate profile (we have to use
-P apache-mcf-release because otherwise we get a 1GB source file, for
instance).

How would you recommend that we proceed?

Thanks,
Karl



On Tue, Dec 2, 2014 at 3:24 AM, Lukasz Lenart <[email protected]>
wrote:

> Leave it to Jenkins (if you use it), your build should just perform
> 'mvn install' and add Post-build Action:
>
> 'Deploy Artifacts to Maven Repository' with params:
> - Repository URL =3D
> https://repository.apache.org/content/repositories/snapshots
> - Repository ID =3D apache.snapshots.https
> - uncheck 'Assign unique versions to snapshots'
>
>
> Regards
> --
> =C5=81ukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2014-12-02 9:07 GMT+01:00 Maurizio Pillitu <[email protected]>:
> > Hi,
> >
> > I'm in the process of configuring Apache ManifoldCF to deploy/release
> > artifacts (using Apache Maven) in repository.apache.org.
> >
> > Unfortunately I get the following exception when trying to run "mvn
> deploy"
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
> (default-deploy)
> > on project mcf-parent: Failed to deploy artifacts: Could not transfer
> > artifact org.apache.manifoldcf:mcf-parent:pom:2.0-20141202.080304-1
> from/to
> > apache.snapshots.https
> > (https://repository.apache.org/content/repositories/snapshots): Access
> > denied to:
> >
> https://repository.apache.org/content/repositories/snapshots/org/apache/m=
anifoldcf/mcf-parent/2.0-SNAPSHOT/mcf-parent-2.0-20141202.080304-1.pom
> ,
> > ReasonPhrase: Forbidden.
> >
> > Maven configuration can be found at
> > http://svn.apache.org/repos/asf/manifoldcf/trunk/pom.xml
> >
> > Is there anything wrong with our configuration?
> >
> > Thanks,
> >   mao
>

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

<div dir=3D"ltr"><div><div><div>Hi Lukasz,<br><br></div>ManifoldCF has a ra=
ther complicated build infrastructure already, supporting both ant and mave=
n builds, but we currently do not have a way of delivering our maven-built =
artifacts to the central repo upon release.=C2=A0 We&#39;ve been trying to =
get this to work using instructions such as this:<br><br><a href=3D"http://=
www.apache.org/dev/publishing-maven-artifacts.html#dev-env">http://www.apac=
he.org/dev/publishing-maven-artifacts.html#dev-env</a><br><br></div><div>Yo=
ur suggestion to use Jenkins would be fine but it does not appear to allow =
signing of artifacts, or use of an alternate profile (we have to use -P apa=
che-mcf-release because otherwise we get a 1GB source file, for instance).<=
br><br></div>How would you recommend that we proceed? <br><br></div>Thanks,=
<br>Karl<br><br><div><div><div><div><br></div></div></div></div></div><div =
class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Dec 2, 2014 at=
 3:24 AM, Lukasz Lenart <span dir=3D"ltr">&lt;<a href=3D"mailto:lukaszlenar=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wrot=
e:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex">Leave it to Jenkins (if you use it), y=
our build should just perform<br>
&#39;mvn install&#39; and add Post-build Action:<br>
<br>
&#39;Deploy Artifacts to Maven Repository&#39; with params:<br>
- Repository URL =3D <a href=3D"https://repository.apache.org/content/repos=
itories/snapshots" target=3D"_blank">https://repository.apache.org/content/=
repositories/snapshots</a><br>
- Repository ID =3D apache.snapshots.https<br>
- uncheck &#39;Assign unique versions to snapshots&#39;<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/" target=3D"_blank">ht=
tp://www.lenart.org.pl/</a><br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
2014-12-02 9:07 GMT+01:00 Maurizio Pillitu &lt;<a href=3D"mailto:maoo@apach=
e.org">[email protected]</a>&gt;:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m in the process of configuring Apache ManifoldCF to deploy/rele=
ase<br>
&gt; artifacts (using Apache Maven) in <a href=3D"http://repository.apache.=
org" target=3D"_blank">repository.apache.org</a>.<br>
&gt;<br>
&gt; Unfortunately I get the following exception when trying to run &quot;m=
vn deploy&quot;<br>
&gt;<br>
&gt; [ERROR] Failed to execute goal<br>
&gt; org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-dep=
loy)<br>
&gt; on project mcf-parent: Failed to deploy artifacts: Could not transfer<=
br>
&gt; artifact org.apache.manifoldcf:mcf-parent:pom:2.0-20141202.080304-1 fr=
om/to<br>
&gt; apache.snapshots.https<br>
&gt; (<a href=3D"https://repository.apache.org/content/repositories/snapsho=
ts" target=3D"_blank">https://repository.apache.org/content/repositories/sn=
apshots</a>): Access<br>
&gt; denied to:<br>
&gt; <a href=3D"https://repository.apache.org/content/repositories/snapshot=
s/org/apache/manifoldcf/mcf-parent/2.0-SNAPSHOT/mcf-parent-2.0-20141202.080=
304-1.pom" target=3D"_blank">https://repository.apache.org/content/reposito=
ries/snapshots/org/apache/manifoldcf/mcf-parent/2.0-SNAPSHOT/mcf-parent-2.0=
-20141202.080304-1.pom</a>,<br>
&gt; ReasonPhrase: Forbidden.<br>
&gt;<br>
&gt; Maven configuration can be found at<br>
&gt; <a href=3D"http://svn.apache.org/repos/asf/manifoldcf/trunk/pom.xml" t=
arget=3D"_blank">http://svn.apache.org/repos/asf/manifoldcf/trunk/pom.xml</=
a><br>
&gt;<br>
&gt; Is there anything wrong with our configuration?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;=C2=A0 =C2=A0mao<br>
</div></div></blockquote></div><br></div>

--001a11c1dcdeee9d9105093ae0a8--