does ivy or ivybeans cache ivy.xml from remote repositories

8 views
Skip to first unread message

Texas_Tester

unread,
Jul 22, 2009, 5:16:04 PM7/22/09
to usr-ivybeans
I have a remote repository that I access via url. I needed to setup a
new dependency manually. I used an ivy.xml from another library and
made the changes. The problem is I accidentally forgot to change the
name of the artifact under the publications tag. So when I tried to
download the dependency into my project, ivy could not find it. I
fixed the ivy.xml but no matter what I did, ivy kept trying to
download based upon the old ivy.xml configuration. I checked my ivy
cache, restarted netbeans, removed the ivy.xml file from my
repository, I did regressive searches through the netbeans install dir
and through my project and can't figure out where this information is
being stored. Is there some intermediate place where this information
is being stored?

Texas_Tester

unread,
Jul 22, 2009, 5:24:51 PM7/22/09
to usr-ivybeans
After upgrading to the new version of the module, I saw the following
success message:
C:\Documents and Settings\jbenton\.netbeans\6.7\modules\ext\local\<org>
\<module>...
I dug around and sure enough, there is a cache dir that is adjacent to
local that had the incorrect ivy.xml

It would be nice to either expose where this cache is located.
It would also be nice to expose the fact that there is a local
repository in ext\local.
It would also be nice to have an option to clear the cache.

Is there a reason ivybeans doesn't just use the regular ivy default
cache location (user.dir/.ivy2/cache)?

Laurent Forêt

unread,
Jul 23, 2009, 4:24:51 AM7/23/09
to usr-iv...@googlegroups.com
No, there is no good reason to hide the cache location, it would be better to use the default one. Please fill an issue for that (http://code.google.com/p/ivybeans/issues/list). 

I do not think that the clear cache is a needed feature. If you know where is the cache you can easily delete the wrong artifacts.

Further more, I have to implement a real option tab (like Maven does) . The one provided in Options > Miscellaneous > Ivy  is less than minimalist ;).

I would like to add this 2 inputs :

 - Change the Ivy Home with an external one if wanted. Ivybeans will just provide the one needed for itself.

 - Change the default behaviour in IvyBeans which is always resolve and retrieve all artifacts (the check box on each project configuration is not a good solution). In Maven support, you can configure "On Project Open"if you want to  download binaries, javadoc and sources. It can be easy to implement it in IvyBeans but it means some refacts.


Regards 

Laurent.
Reply all
Reply to author
Forward
0 new messages