ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: AW: Re: Ivy with archiva
Date Tue, 11 Nov 2008 21:26:01 GMT
Stefan,

it's not clear from your answer, but did you try to omit the port when declaring the credentials?

<ivy:settings file="./ivysettings.xml">
    <credentials host="archivaHost" realm="Repository Archiva Managed Internal Repository"
username="upload" passwd="upload2" />
</ivy:settings>

If that doesn't work as well, could you post the log you get on your console when running
in verbose mode?

Maarten




----- Original Message ----
From: Burkhardt Stefan (CI/TMP) <Stefan.Burkhardt@de.bosch.com>
To: ivy-user@ant.apache.org
Sent: Tuesday, November 11, 2008 9:19:45 AM
Subject: AW:  Re: Ivy with archiva

Hi Tom,

Thanks for your answer. I tried to the same with the URL-Resolver. Unfortunately with the
same result.
Any other idea?

Stefan



-----Urspr√ľngliche Nachricht-----
Von: news [mailto:news@ger.gmane.org] Im Auftrag von Tom Widmer
Gesendet: Montag, 10. November 2008 16:43
An: ivy-user@ant.apache.org
Betreff: Re: Ivy with archiva

Burkhardt Stefan (CI/TMP) wrote:
> Hi,
> 
> I try to upload an artefact to archiva. I always get an exception
> (Unauthorized) when I have to use Basic Authentication. (The
> http-client.jar is in the classpath)
> Before I try to publish the artefact I set the Authentication parameters
> within Ivy: 
> Build file:
>         <ivy:settings file="./ivysettings.xml">
>                 <credentials host="archivaHost:archivaPort"

You could try leaving the port out of host, e.g. host="archivaHost". 
Looking at my local setup, that's what I've done to access our TeamCity 
build server's repository (despite the port being something strange like 
8070).

> realm="Repository Archiva Managed Internal Repository" username="upload"
> passwd="upload2" />
>         </ivy:settings>
>         <ivy:publish organisation="${organisation}" module="${module}"
> revision="${version}" resolver="chained"
> artifactspattern="dist/[artifact]-[revision].[ext]" overwrite="true"
> validate="false" publishivy="false"/>
> 
> Ivy-settings:
>     <resolvers>
>         <chain name="chained" returnFirst="true">
>             <ibiblio name="local"
> root="archivaHost:archivaPort/archiva/repository/internal/"
> m2compatible="true"/>

According to 
http://ant.apache.org/ivy/history/latest-milestone/resolver/ibiblio.html
ibiblio doesn't support publishing. Apparently URL does though: 
http://ant.apache.org/ivy/history/latest-milestone/resolver/url.html

Hope that helps.

Tom


      

Mime
View raw message