ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Becheanu <daniel.beche...@gmail.com>
Subject Re: where to put credentials for ivy:publish
Date Fri, 06 Nov 2009 15:51:18 GMT
Correction:

http://archiva/repository/shared

On Fri, Nov 6, 2009 at 9:50 AM, Daniel Becheanu
<daniel.becheanu@gmail.com> wrote:
>                <ivy:settings file="ivyconf.xml" id="independentSettings">
>                                          <credentials host="${host}"
realm="${realm}"
> username="${username}" passwd="${passwd}" />
>                </ivy:settings>
>
> Properties:
>
> realm Repository Archiva Managed shared Repository
> username foo
> passwd bar
> host somehost
>
>
> where "shared" is the archiva repository name you can access with following url
> http://archiva/repository/norvax-modules/
>
> Daniel
>
> On Thu, Nov 5, 2009 at 1:45 AM, Maarten Coene <maarten_coene@yahoo.com> wrote:
>> For basic authentication it should work without commons-httpclient as well.
>>
>> Maarten
>>
>>
>>
>>
>> ----- Original Message ----
>> From: "nick.dilauro@inovis.com" <nick.dilauro@inovis.com>
>> To: "ivy-user@ant.apache.org" <ivy-user@ant.apache.org>
>> Sent: Thu, November 5, 2009 12:35:02 AM
>> Subject: RE: where to put credentials for ivy:publish
>>
>> Thanks.  I think I know the problem now.  I ran with -d option and the credentials
are being loaded.  I looked a little at the source and in order to pick up the credentials
the apache commons http client has to be used and my output shows I'm not loading it.  I'll
have to look at my ivy setup and make sure I get this jar.
>>
>> Nick DiLauro
>>
>> Inovis Inc.
>>
>>
>> -----Original Message-----
>> From: Maarten Coene [mailto:maarten_coene@yahoo.com]
>> Sent: Wednesday, November 04, 2009 2:38 PM
>> To: ivy-user@ant.apache.org
>> Subject: Re: where to put credentials for ivy:publish
>>
>> Please open a JIRA issue and attach the debug console log from Ant (ant -d ...)
>> https://issues.apache.org/jira/browse/IVY
>>
>> Maarten
>>
>>
>>
>>
>> ----- Original Message ----
>> From: "nick.dilauro@inovis.com" <nick.dilauro@inovis.com>
>> To: "ivy-user@ant.apache.org" <ivy-user@ant.apache.org>
>> Sent: Wed, November 4, 2009 6:32:39 PM
>> Subject: RE: where to put credentials for ivy:publish
>>
>> Thanks for the reply, but that didn't work.  It doesn't seem to matter what I put
in any of the fields since the whole credentials stanza seems to be ignored.  It could be
in the wrong place or there could be some default overriding it, since Artifactory access
log shows that user "anonymous" is being used for the deploy.
>>
>> Nick DiLauro
>>
>> Inovis Inc.
>>
>> -----Original Message-----
>> From: Maarten Coene [mailto:maarten_coene@yahoo.com]
>> Sent: Tuesday, November 03, 2009 11:32 PM
>> To: ivy-user@ant.apache.org
>> Subject: Re: where to put credentials for ivy:publish
>>
>> I think the host attribute in your credentials should only contain the host:
>> <credentials host="alfartifactory" realm="Artifactory Realm" username="myuser"
passwd="mypwd"/>
>>
>> Maarten
>>
>>
>>
>> ________________________________
>> From: "nick.dilauro@inovis.com" <nick.dilauro@inovis.com>
>> To: "ivy-user@ant.apache.org" <ivy-user@ant.apache.org>
>> Sent: Wed, November 4, 2009 12:45:06 AM
>> Subject: where to put credentials for ivy:publish
>>
>>
>> I have an ivy:publish target for which I use an ivysettings.xml
>> file, but when I check the artifactory server access log it is using “anonymous”
>> user and not picking up “myuser”.   Is there another
>> place where I should put the credentials line?  Seems like it’s
>> being ignored.  I’m using ivy version 2.1.0 and
>> Artifactory version 2.0.8
>>
>> <ivysettings>
>> <settings defaultResolver="my-chain">
>> </settings>
>> <property name="ivy.repository.host"
>> value="alfartifactory:8080/artifactory"/>
>> <credentials host="http://alfartifactory:8080/artifactory";
>> realm="Artifactory Realm" username="myuser" passwd="mypwd"/>
>>
>> <resolvers>
>>  <!-- <properties
>> file="ivy.properties"/> -->
>>  <chain name="my-chain">
>>                <url
>> name="my-ivy2">
>>                                <artifact
>> pattern="http://${ivy.repository.host}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]";
>> />
>>                                <artifact
>> pattern="http://${ivy.repository.host}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]";
>> />
>>                                <artifact
>> pattern="http://${ivy.repository.host}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]";
>> />
>>                </url>
>>   </chain>
>>  </resolvers>
>> </ivysettings>
>>
>> Nicholas DiLauro
>> Sr. Build Engineer III
>> 6425 Christie Ave, Ste 300
>> Emeryville, CA 94608
>> +1 510.285.5026 direct
>> +1 510.285.5026 fax
>> Nicholas.DiLauro@inovis.com
>> www.inovis.com
>>
>>
>>
>>
>

Mime
View raw message