Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on POM in SNAPSHOT mode fails to work properly due to .ivy2 cache #55

Open
emcastro opened this issue Dec 27, 2024 · 2 comments
Milestone

Comments

@emcastro
Copy link

When working in JJava with classes from a Maven projet under construction, i.e. with a SNAPSHOT version, JJava imports the version from ~/.ivy2 directory without refreshing it.
It is very Very VEry VERY confusing 🤪.
It makes deleted classes non existent and new classes unknown to JJava.

Workaround: manually delete outdated versions of the project in the ~/ivy2/cache directory.

I joined a simple 2 classes Maven project to demonstrate the bug.
jjava-bug-1.tar.gz

@emcastro
Copy link
Author

It might be related to #23

@andrus
Copy link
Contributor

andrus commented Dec 27, 2024

Yes, working with snapshots is annoying. I am constantly going through a cycle of rm -rf ~/.ivy/cache/org.dflib* / restart the kernel. So fixing this would be great.

Quick check of Ivy docs (and ChatGPT 😎) shows that resolvers can have "changingPattern" and "changingMatcher" attributes, and since JJava configures its own Ivy instance, we should be able to apply them to .*-SNAPSHOT patterns in artifact names.

@stariy95 stariy95 added this to the 1.0-a5 milestone Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants