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 "Wise, Timothy E" <Ti...@ca.com> on 2011/12/21 05:45:48 UTC
Cannot get latest version of a 'changing revision'
I am trying to create a changing revision (snapshot) as is described in the Change Management section of the Main Concepts documentation (http://ant.apache.org/ivy/history/latest-milestone/concept.html).
I have defined the dependencies as changing and have set the checkmodifed, changingMatcher, and changingPattern attributes of the resolver. But I still do not get latest version of the snapshot. I always get what's in the cache.
I'm publishing several artifacts (zips) for a single module and an using classifers to distinguish them.There's a single .pom (generated using ivy:makepom) and a single ivy file (created by ivy:publish). The artifacts at being published to nexus repository:
data-manager-2.0-SNAPSHOT-dm-sql-scripts.zip
data-manager-2.0-SNAPSHOT-gsg-cm51.zip
data-manager-2.0-SNAPSHOT-pdm.war
data-manager-2.0-SNAPSHOT-report-templates.zip
data-manager-2.0-SNAPSHOT-samples.zip
data-manager-2.0-SNAPSHOT-user-docs.zip
data-manager-2.0-SNAPSHOT-utils.zip
data-manager-2.0-SNAPSHOT-visualizer.jar
data-manager-2.0-SNAPSHOT.pom
ivy-2.0-SNAPSHOT.xml
The dependencies for the consumer are:
<dependency org="com.ca.va" name="data-manager" rev="2.0-SNAPSHOT" conf="data-manager->default" changing="true">
<artifact name="data-manager" m:classifier="dm-sql-scripts" type="zip"/>
<artifact name="data-manager" m:classifier="gsg-cm51" type="zip"/>
<artifact name="data-manager" m:classifier="pdm" type="war"/>
<artifact name="data-manager" m:classifier="report-templates" type="zip"/>
<artifact name="data-manager" m:classifier="samples" type="zip"/>
<artifact name="data-manager" m:classifier="user-docs" type="zip"/>
<artifact name="data-manager" m:classifier="utils" type="zip"/>
<artifact name="data-manager" m:classifier="visualizer" type="jar"/>
</dependency>
The resolver is defined as:
<ibiblio name="snapshots" root="http://<my ip>/nexus/content/repositories/snapshots"
checkmodified="true"
changingMatcher="regexp"
changingPattern=".*SNAPSHOT.*"
m2compatible="true"
usepoms="true"
useMavenMetadata="false"
pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
Like I said, everything works ok on the first ivy:resolve. But after that, always get cache hit. I don't get the latest versions in the repository.
Is there something else I need to be doing? Or something I'm doing wrong?
Any info helps. Thanks.
--
Tim