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 Ed Staub <ed...@ericsson.com> on 2013/01/22 16:39:58 UTC

How to use snapshots(changingPattern) with ivy-published artifacts and Artifactory?

I've tried using an UrlResolver and an IBiblioResolver, and I cannot get
snapshots to work properly.  We don't use Maven at all.  We are using
Artifactory as a repository.  Here is a resolver:

<url name="xxx" m2compatible="false" checkmodified="true"
changingMatcher="regexp" 
     changingPattern=".*-SNAPSHOT.*">

I've tried a variety of other settings, as well.

A detailed Ant log of a "resolve" shows things like:
[NOT REQUIRED] com.myorg#my-module;1.999-SNAPSHOT!my-jar.jar

I have verified that the returned HTTP headers have correct date-modified,
and that the cache files are not updated.  

Perhaps this only works correctly with Maven metadata?
If so, is there a way to get Ivy to publish Maven metadata?  (I looked and
don't see any.)
I have read https://issues.apache.org/jira/browse/IVY-938 and
https://issues.apache.org/jira/browse/IVY-1221, including all the comments,
and AFAICT (perhaps incorrectly!) none of the workarounds are relevant.  On
the other hand, I don't see that either of these issues indicate that it is
broken in my scenario.

A related question: if we switch to use "latest" dynamic versioning, will
the same problem(s) pertain?

Any bigger-picture advice will be welcome.
-- 
View this message in context: http://old.nabble.com/How-to-use-snapshots%28changingPattern%29-with-ivy-published-artifacts-and-Artifactory--tp34931222p34931222.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: How to use snapshots(changingPattern) with ivy-published artifacts and Artifactory?

Posted by Ed Staub <ed...@ericsson.com>.
Maarten,

Thanks for responding.
I've found the problem.
I followed the ivysettings.xml structure, with multiple include files, shown
in the tutorial.
I put 
      checkmodified="true" changingPattern=".*-SNAPSHOT"
on the lowest-level resolvers, and didn't consider that it might have to be
put on the parent <chain> resolvers as well.

-Ed Staub


Maarten Coene wrote:
> 
> Could you post your ivysettings.xml?
> At first sight, your resolver seems ok.
> 
> Maarten
> 
> 
> 
> 
> ________________________________
>  From: Ed Staub <ed...@ericsson.com>
> To: ivy-user@ant.apache.org 
> Sent: Tuesday, January 22, 2013 4:39 PM
> Subject: How to use snapshots(changingPattern) with ivy-published
> artifacts and Artifactory?
>  
> 
> I've tried using an UrlResolver and an IBiblioResolver, and I cannot get
> snapshots to work properly.  We don't use Maven at all.  We are using
> Artifactory as a repository.  Here is a resolver:
> 
> <url name="xxx" m2compatible="false" checkmodified="true"
> changingMatcher="regexp" 
>      changingPattern=".*-SNAPSHOT.*">
> 
> I've tried a variety of other settings, as well.
> 
> A detailed Ant log of a "resolve" shows things like:
> [NOT REQUIRED] com.myorg#my-module;1.999-SNAPSHOT!my-jar.jar
> 
> I have verified that the returned HTTP headers have correct date-modified,
> and that the cache files are not updated.  
> 
> Perhaps this only works correctly with Maven metadata?
> If so, is there a way to get Ivy to publish Maven metadata?  (I looked and
> don't see any.)
> I have read https://issues.apache.org/jira/browse/IVY-938 and
> https://issues.apache.org/jira/browse/IVY-1221, including all the
> comments,
> and AFAICT (perhaps incorrectly!) none of the workarounds are relevant. 
> On
> the other hand, I don't see that either of these issues indicate that it
> is
> broken in my scenario.
> 
> A related question: if we switch to use "latest" dynamic versioning, will
> the same problem(s) pertain?
> 
> Any bigger-picture advice will be welcome.
> -- 
> View this message in context:
> http://old.nabble.com/How-to-use-snapshots%28changingPattern%29-with-ivy-published-artifacts-and-Artifactory--tp34931222p34931222.html
> Sent from the ivy-user mailing list archive at Nabble.com.
> 

-- 
View this message in context: http://old.nabble.com/How-to-use-snapshots%28changingPattern%29-with-ivy-published-artifacts-and-Artifactory--tp34931222p34945524.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: How to use snapshots(changingPattern) with ivy-published artifacts and Artifactory?

Posted by Maarten Coene <ma...@yahoo.com>.
Could you post your ivysettings.xml?
At first sight, your resolver seems ok.

Maarten




________________________________
 From: Ed Staub <ed...@ericsson.com>
To: ivy-user@ant.apache.org 
Sent: Tuesday, January 22, 2013 4:39 PM
Subject: How to use snapshots(changingPattern) with ivy-published artifacts and Artifactory?
 

I've tried using an UrlResolver and an IBiblioResolver, and I cannot get
snapshots to work properly.  We don't use Maven at all.  We are using
Artifactory as a repository.  Here is a resolver:

<url name="xxx" m2compatible="false" checkmodified="true"
changingMatcher="regexp" 
     changingPattern=".*-SNAPSHOT.*">

I've tried a variety of other settings, as well.

A detailed Ant log of a "resolve" shows things like:
[NOT REQUIRED] com.myorg#my-module;1.999-SNAPSHOT!my-jar.jar

I have verified that the returned HTTP headers have correct date-modified,
and that the cache files are not updated.  

Perhaps this only works correctly with Maven metadata?
If so, is there a way to get Ivy to publish Maven metadata?  (I looked and
don't see any.)
I have read https://issues.apache.org/jira/browse/IVY-938 and
https://issues.apache.org/jira/browse/IVY-1221, including all the comments,
and AFAICT (perhaps incorrectly!) none of the workarounds are relevant.  On
the other hand, I don't see that either of these issues indicate that it is
broken in my scenario.

A related question: if we switch to use "latest" dynamic versioning, will
the same problem(s) pertain?

Any bigger-picture advice will be welcome.
-- 
View this message in context: http://old.nabble.com/How-to-use-snapshots%28changingPattern%29-with-ivy-published-artifacts-and-Artifactory--tp34931222p34931222.html
Sent from the ivy-user mailing list archive at Nabble.com.