where to put credentials for ivy:publish

View: New views
10 Messages — Rating Filter:   Alert me  

where to put credentials for ivy:publish

by nick.dilauro@inovis.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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@...
www.inovis.com


Re: where to put credentials for ivy:publish

by Maarten Coene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...
www.inovis.com





RE: where to put credentials for ivy:publish

by nick.dilauro@inovis.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...]
Sent: Tuesday, November 03, 2009 11:32 PM
To: ivy-user@...
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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...
www.inovis.com



     

Re: where to put credentials for ivy:publish

by topher1120 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is Artifactory set up to allow anonymous publish?  If so, perhaps it's not
sending a challenge for Ivy to respond to.
Thanks,
topher


On Wed, Nov 4, 2009 at 10:32 AM, nick.dilauro@... <
nick.dilauro@...> wrote:

> 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@...]
> Sent: Tuesday, November 03, 2009 11:32 PM
> To: ivy-user@...
> 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@..." <nick.dilauro@...>
> To: "ivy-user@..." <ivy-user@...>
> 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@...
> www.inovis.com
>
>
>
>
>

RE: where to put credentials for ivy:publish

by nick.dilauro@inovis.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, but unfortunately that's not it.  If anonymous is set to have no privileges then Artifactory refuses the deploy and logs the deploy as being refused for 'anonymous'.  If the credentials actually works I would think it would already be populating the userid, etc by the time the request gets to Artifactory.  

Nick DiLauro

Inovis Inc.


-----Original Message-----
From: Chris Marks [mailto:topher1120@...]
Sent: Wednesday, November 04, 2009 10:03 AM
To: ivy-user@...
Subject: Re: where to put credentials for ivy:publish

Is Artifactory set up to allow anonymous publish?  If so, perhaps it's not
sending a challenge for Ivy to respond to.
Thanks,
topher


On Wed, Nov 4, 2009 at 10:32 AM, nick.dilauro@... <
nick.dilauro@...> wrote:

> 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@...]
> Sent: Tuesday, November 03, 2009 11:32 PM
> To: ivy-user@...
> 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@..." <nick.dilauro@...>
> To: "ivy-user@..." <ivy-user@...>
> 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@...
> www.inovis.com
>
>
>
>
>

Re: where to put credentials for ivy:publish

by Maarten Coene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...]
Sent: Tuesday, November 03, 2009 11:32 PM
To: ivy-user@...
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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...
www.inovis.com




RE: where to put credentials for ivy:publish

by nick.dilauro@inovis.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...]
Sent: Wednesday, November 04, 2009 2:38 PM
To: ivy-user@...
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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...]
Sent: Tuesday, November 03, 2009 11:32 PM
To: ivy-user@...
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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...
www.inovis.com


     

Re: where to put credentials for ivy:publish

by Maarten Coene :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For basic authentication it should work without commons-httpclient as well.

Maarten




----- Original Message ----
From: "nick.dilauro@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...]
Sent: Wednesday, November 04, 2009 2:38 PM
To: ivy-user@...
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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...]
Sent: Tuesday, November 03, 2009 11:32 PM
To: ivy-user@...
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@..." <nick.dilauro@...>
To: "ivy-user@..." <ivy-user@...>
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@...
www.inovis.com




Re: where to put credentials for ivy:publish

by Daniel Becheanu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

                <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@...> wrote:

> For basic authentication it should work without commons-httpclient as well.
>
> Maarten
>
>
>
>
> ----- Original Message ----
> From: "nick.dilauro@..." <nick.dilauro@...>
> To: "ivy-user@..." <ivy-user@...>
> 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@...]
> Sent: Wednesday, November 04, 2009 2:38 PM
> To: ivy-user@...
> 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@..." <nick.dilauro@...>
> To: "ivy-user@..." <ivy-user@...>
> 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@...]
> Sent: Tuesday, November 03, 2009 11:32 PM
> To: ivy-user@...
> 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@..." <nick.dilauro@...>
> To: "ivy-user@..." <ivy-user@...>
> 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@...
> www.inovis.com
>
>
>
>

Re: where to put credentials for ivy:publish

by Daniel Becheanu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Correction:

http://archiva/repository/shared

On Fri, Nov 6, 2009 at 9:50 AM, Daniel Becheanu
<daniel.becheanu@...> 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@...> wrote:
>> For basic authentication it should work without commons-httpclient as well.
>>
>> Maarten
>>
>>
>>
>>
>> ----- Original Message ----
>> From: "nick.dilauro@..." <nick.dilauro@...>
>> To: "ivy-user@..." <ivy-user@...>
>> 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@...]
>> Sent: Wednesday, November 04, 2009 2:38 PM
>> To: ivy-user@...
>> 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@..." <nick.dilauro@...>
>> To: "ivy-user@..." <ivy-user@...>
>> 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@...]
>> Sent: Tuesday, November 03, 2009 11:32 PM
>> To: ivy-user@...
>> 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@..." <nick.dilauro@...>
>> To: "ivy-user@..." <ivy-user@...>
>> 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@...
>> www.inovis.com
>>
>>
>>
>>
>