Hey all,
I've been having problems with the following:
Me and some of my colleagues are working on a shared library, at any time we may all be contributing to the same version of a snapshot, lets say project-x-version-y-SNAPSHOT. It seems that the default behaviour of publish-local (perhaps quite low down in ivy) is to not overwrite the ivy cache located at ~/.ivy2/cache/ (although it does still write to ~/.ivy2/local/) if there is an existing ivydata-version-y-SNAPSHOT.properties file there.
The result of this is that if any of us want to use a local version of the library while developing (pretty common use case) then we need to go into ~/.ivy2/cache/ and manually delete any entries for project-x-version-y-SNAPSHOT, before then using publish-local. There is usually an entry there from downloading project-x from our maven repository. Is this the default behaviour? Or is my build messed up in some way? If not what would be the best way to automate the "cleaning" of the cache? (we don't want to have to clean the whole thing, only project-x-version-y-SNAPSHOT).
Let me know if you want any more info (my build settings are pretty verbose, so sorry for not posting them, I don't think I've changed anything related to this).
Cheers!