You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Giridharan Kesavan <gk...@yahoo-inc.com> on 2009/06/19 07:40:58 UTC

using ivy publish artifacts to nexus repo

I'm tryin to publish artifacts to my internal nexus repo:

Here is the exception I get while doing so
java.io.IOException: Access to URL http://<host>/nexus/content/repositories/releases/[organisation]/[revision]/[artifact].[ext] was refused by the server: Unauthorized

ivy:configure task:

<ivy:configure settingsid="${ant.project.name}.ivy.settings" file="${ivysettings.xml}" override='true'
      host="${hostname}" realm="Sonatype Nexus Repository Manager" username="user" passwd="password"/>

Let me know if Im missing something..

Thanks,
Giri

RE: using ivy publish artifacts to nexus repo

Posted by Giridharan Kesavan <gk...@yahoo-inc.com>.
Finally I was able to figure out the reason for the authentication failure 

In the credentials tag I ve set the host="hostname:8081" which is the port my nexus server is listens on..

After removing the port # it worked.

But still I couldn't get to publish a pom file published; all I could publish is the ivy.xml file.


Thx
Giri

-----Original Message-----
From: Giridharan Kesavan [mailto:gkesavan@yahoo-inc.com] 
Sent: Friday, June 19, 2009 12:05 PM
To: ivy-user@ant.apache.org
Subject: RE: using ivy publish artifacts to nexus repo

Geoff thanks for your help.

I tried adding the credentials tag to the ivysetting.xml file with realm 
<credentials host="${hostname}" realm="Sonatype Nexus Repository Manager" username="user" passwd="password"/>
Still I see that same problem.. 

Ant -d doesn't seem to help with any debug information..

The only information I get from the ant logs which is relevant.. 
[ivy:publish] authentication: k='Sonatype Nexus Repository Manager@<hostname>' c='null'

Can someone help me on this?

Thanks,
Giri

-----Original Message-----
From: Geoff Clitheroe [mailto:g.clitheroe@gmail.com] 
Sent: Friday, June 19, 2009 11:25 AM
To: ivy-user@ant.apache.org
Subject: Re: using ivy publish artifacts to nexus repo

Hi,

I haven't tried to publish like you describe (we do it locally to disk
first, then rsync the repo) but the credentials in your xml fragment apply
to the ivy:configure element and are used if your settings file is being
fetched from a URL.  I think to provide credentials for publishing you would
apply them to the resover you call during the publish.

Cheers,
Geoff


On Fri, Jun 19, 2009 at 5:40 PM, Giridharan Kesavan
<gk...@yahoo-inc.com>wrote:

> I'm tryin to publish artifacts to my internal nexus repo:
>
> Here is the exception I get while doing so
> java.io.IOException: Access to URL http://<host>/nexus/content/repositories/releases/[organisation]/[revision]/[artifact].[ext]
> was refused by the server: Unauthorized
>
> ivy:configure task:
>
> <ivy:configure settingsid="${ant.project.name}.ivy.settings"
> file="${ivysettings.xml}" override='true'
>      host="${hostname}" realm="Sonatype Nexus Repository Manager"
> username="user" passwd="password"/>
>
> Let me know if Im missing something..
>
> Thanks,
> Giri
>

RE: using ivy publish artifacts to nexus repo

Posted by Giridharan Kesavan <gk...@yahoo-inc.com>.
Geoff thanks for your help.

I tried adding the credentials tag to the ivysetting.xml file with realm 
<credentials host="${hostname}" realm="Sonatype Nexus Repository Manager" username="user" passwd="password"/>
Still I see that same problem.. 

Ant -d doesn't seem to help with any debug information..

The only information I get from the ant logs which is relevant.. 
[ivy:publish] authentication: k='Sonatype Nexus Repository Manager@<hostname>' c='null'

Can someone help me on this?

Thanks,
Giri

-----Original Message-----
From: Geoff Clitheroe [mailto:g.clitheroe@gmail.com] 
Sent: Friday, June 19, 2009 11:25 AM
To: ivy-user@ant.apache.org
Subject: Re: using ivy publish artifacts to nexus repo

Hi,

I haven't tried to publish like you describe (we do it locally to disk
first, then rsync the repo) but the credentials in your xml fragment apply
to the ivy:configure element and are used if your settings file is being
fetched from a URL.  I think to provide credentials for publishing you would
apply them to the resover you call during the publish.

Cheers,
Geoff


On Fri, Jun 19, 2009 at 5:40 PM, Giridharan Kesavan
<gk...@yahoo-inc.com>wrote:

> I'm tryin to publish artifacts to my internal nexus repo:
>
> Here is the exception I get while doing so
> java.io.IOException: Access to URL http://<host>/nexus/content/repositories/releases/[organisation]/[revision]/[artifact].[ext]
> was refused by the server: Unauthorized
>
> ivy:configure task:
>
> <ivy:configure settingsid="${ant.project.name}.ivy.settings"
> file="${ivysettings.xml}" override='true'
>      host="${hostname}" realm="Sonatype Nexus Repository Manager"
> username="user" passwd="password"/>
>
> Let me know if Im missing something..
>
> Thanks,
> Giri
>

Re: using ivy publish artifacts to nexus repo

Posted by Geoff Clitheroe <g....@gmail.com>.
Hi,

I haven't tried to publish like you describe (we do it locally to disk
first, then rsync the repo) but the credentials in your xml fragment apply
to the ivy:configure element and are used if your settings file is being
fetched from a URL.  I think to provide credentials for publishing you would
apply them to the resover you call during the publish.

Cheers,
Geoff


On Fri, Jun 19, 2009 at 5:40 PM, Giridharan Kesavan
<gk...@yahoo-inc.com>wrote:

> I'm tryin to publish artifacts to my internal nexus repo:
>
> Here is the exception I get while doing so
> java.io.IOException: Access to URL http://<host>/nexus/content/repositories/releases/[organisation]/[revision]/[artifact].[ext]
> was refused by the server: Unauthorized
>
> ivy:configure task:
>
> <ivy:configure settingsid="${ant.project.name}.ivy.settings"
> file="${ivysettings.xml}" override='true'
>      host="${hostname}" realm="Sonatype Nexus Repository Manager"
> username="user" passwd="password"/>
>
> Let me know if Im missing something..
>
> Thanks,
> Giri
>