ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shcherbakov" <>
Subject Publication of the artifacts with classifiers to the maven repository
Date Fri, 26 Jun 2009 11:41:25 GMT
Hi all,


Understanding advantages of the Ivy vs. Maven I am using Ivy as
dependency managing tool for our non-Java projects.

But we have also some Java maven projects that cannot be migrated to Ivy


So I am trying to use homogenous dependency environment where Ivy
projects sometimes depend on the Maven artifacts in the maven


Recently I found a problem.


An Ivy project A publishes it's "snapshot" artifact to the maven
repository so that it can be used by other maven projects.

There is another Ivy project B that among others depends on artifacts
generated by project A.


In case of snapshot build the artifact gets changed without changing its
version number.

The project A overwrites the artifact in the repository with each
snapshot build properly.


The project B finds this artifact for the first time, downloads it to
the ivy cache and uses OK.


The problem is that the project B doesn't notice that the artifact gets
changed in the maven repo and doesn't update the cache although
changing="true" is specified for that dependency. Thus outdated version
of the A comes into the project B build.


The resolution in debug mode shows :

[ivy:resolve] A is changing, but has not changed: will trust cached
artifacts if any


There was though some problem with ivy repo file parsing (shown only in
debug mode):


[ivy:resolve]   problem while parsing cached ivy file for:;4.03.000-SNAPSHOT: [xml parsing: ivy-4.03.000-

SNAPSHOT.xml:15:85: cvc-complex-type.3.2.2: Attribute 'classifier' is
not allowed to appear in element 'artifact'. in file:/C:/Doc



The cached ivy file do really contains classifier attribute but doesn't
have namespace prefix and no xmlns declaration, although the initial
project A ivy.xml file had that definitions. Obviously, when Ivy
published artifacts (or when the cache ivy file was generated) the
namespace prefixes were removed by Ivy. Can that be a reason of not
updating snapshot artifacts in cache?


Best Regards,

Sergey Shcherbakov.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message