You are viewing a plain text version of this content. The canonical link for it is here.
Posted to repository@apache.org by Maurizio Pillitu <ma...@apache.org> on 2014/12/02 09:07:54 UTC

Forbidden Snapshot deployment on repository.apache.org

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/manifoldcf/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

Re: Forbidden Snapshot deployment on repository.apache.org

Posted by Lukasz Lenart <lu...@apache.org>.
2014-12-02 13:29 GMT+01:00 Karl Wright <da...@gmail.com>:
> 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?

No other suggestions, I've just proposed what works for the Struts project :-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

Re: Forbidden Snapshot deployment on repository.apache.org

Posted by sebb <se...@gmail.com>.
On 2 December 2014 at 12:29, Karl Wright <da...@gmail.com> wrote:
> 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

Signing is supposed to be done by the release manager, not a bot.
In any case, SNAPSHOTs don't need to be signed, and releases must be
voted on before publication.

> , or use of an alternate profile (we have to use -P
> apache-mcf-release because otherwise we get a 1GB source file, for
> instance).

I'm pretty sure Jenkins will allow a profile to be specified.

However, if the default release profile is unsuitable, then it would
be better to fix this in the project poms.

> How would you recommend that we proceed?

> Thanks,
> Karl
>
>
>
> On Tue, Dec 2, 2014 at 3:24 AM, Lukasz Lenart <lu...@apache.org>
> 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 =
>> https://repository.apache.org/content/repositories/snapshots
>> - Repository ID = apache.snapshots.https
>> - uncheck 'Assign unique versions to snapshots'
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> 2014-12-02 9:07 GMT+01:00 Maurizio Pillitu <ma...@apache.org>:
>> > 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/manifoldcf/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
>
>

Re: Forbidden Snapshot deployment on repository.apache.org

Posted by Karl Wright <da...@gmail.com>.
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 <lu...@apache.org>
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 =
> https://repository.apache.org/content/repositories/snapshots
> - Repository ID = apache.snapshots.https
> - uncheck 'Assign unique versions to snapshots'
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2014-12-02 9:07 GMT+01:00 Maurizio Pillitu <ma...@apache.org>:
> > 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/manifoldcf/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
>

Re: Forbidden Snapshot deployment on repository.apache.org

Posted by Lukasz Lenart <lu...@apache.org>.
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 = https://repository.apache.org/content/repositories/snapshots
- Repository ID = apache.snapshots.https
- uncheck 'Assign unique versions to snapshots'


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2014-12-02 9:07 GMT+01:00 Maurizio Pillitu <ma...@apache.org>:
> 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/manifoldcf/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