ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Pl├Ątzinger (JIRA) <>
Subject [jira] [Commented] (IVY-1221) ivy won't resolve updated maven SNAPSHOT artifacts with classifiers from local repo
Date Wed, 15 May 2013 09:11:16 GMT


Christian Pl├Ątzinger commented on IVY-1221:

Same issue here using Ivy 2.3.0. The main artifact is always updated but the artifact with
classifier 'tests' is never updated! This is very annoying. Please review the patch provided
by [~wrprice]. Would like to get this fixed in the next version. 

		<chain name="macd-nexus">
			<!-- ask nexus for the artifact -->
			<!-- url must be hardcoded since eclipse did not load the properties.xml 
				file -->
			<ibiblio name="macd" m2compatible="true"
				changingMatcher="regexp" changingPattern=".*SNAPSHOT.*" checkmodified="true" />

*dependency declaration in ivy.xml*
        <dependency org="com.macd" name="database" rev="${ivy.macd.moduleversion}" 
        			changing="true" transitive="false">
                    <artifact name="database" type="jar" ext="jar" conf="commons-database,compile,runtime-xconnect->*"/>
                    <artifact name="database" type="jar" ext="jar" e:classifier="tests"
> ivy won't resolve updated maven SNAPSHOT artifacts with classifiers from local repo
> -----------------------------------------------------------------------------------
>                 Key: IVY-1221
>                 URL:
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.2.0-RC1
>         Environment: Mac OS X 10.6, Ant 1.7.1, Maven 2.2.1
>            Reporter: Nick Bonatsakis
>              Labels: patch
>         Attachments: fix3.patch
> The situation I'm running into is as follows: I have a maven project that produces two
artifacts foo-SNAPSHOT.jar and foo-SNAPSHOT-tests.jar. When I resolve these via ivy, they
are both pulled properly initially, however with the following ivysettings ibiblio, only the
foo-SNAPSHOTS.jar is getting updated on resolve after re-installing via maven.
> <ibiblio name="local_m2_repo" 
>                  m2compatible="true"
>                  usepoms="true"
>                  changingPattern=".*-SNAPSHOT.*"
>                  changingMatcher="regexp"
>                  checkmodified="true"
>                  root="${localm2repo.url}"/>
> I started out trying the pattern ".*-SNAPSHOT" which I would have expected to pick up
the tests jar, but tried this in the hopes of getting it to work, which of course it did not.
This doesn't seem to be a retrieve issue either, the modified date of the foo-SNAPSHOT.jar
in the local ivy cache is being updated while foo-SNAPSHOT-test.jar is not. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message