You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] How to change the local cache directory? (Or portability?) #97
jpm will actually use whatever is defined in $HOME/.m2/settings.xml but I'm guessing you want a command line option to change the directory on the fly?
Thank you for responding.
After knowing that jpm also reads settings.xml, I think what I should say is to support portability. I opened this issue because on my computer, I organize programs into folders and I don't want them to touch/read anything else unexpectly. I think this applies to many people. For example people on restricted environments.
I know it's probably MIMA doing it by default and changing this requires work. But I really think implementing portability will make both me and lots of other people's life better.
Ok, I understand what you're saying. But I'd like to understand better how you'd see this work. Because like you said this is how MIMA does it. And it does it because that's how Maven and Gradle work. In your case, how do you normally manage Maven and Gradle? Because in the end it would be the most efficient if all could share the same cache.
Since I'm not sure how many files does jpm read, I don't know how this should be done. But at least on my computer, I set GRADLE_USER_HOME. And for Maven, I set <localRepository>${maven.home}/../repo</localRepository> in maven-home/conf/settings.xml.
At least in my opinion, if all files read are in a single directory, there should be a env var to change the directory's path. And if there's several separate files and dirs, there should be a env var for the path of each of them.
changed the title [-][Question] How to change the local cache directory?[/-][+][Question] How to change the local cache directory? (Or portability?)[/+]on Jan 22, 2026
Activity
quintesse commentedon Jan 20, 2026
jpm will actually use whatever is defined in
$HOME/.m2/settings.xmlbut I'm guessing you want a command line option to change the directory on the fly?xycabcd commentedon Jan 21, 2026
Thank you for responding.
After knowing that jpm also reads settings.xml, I think what I should say is to support portability. I opened this issue because on my computer, I organize programs into folders and I don't want them to touch/read anything else unexpectly. I think this applies to many people. For example people on restricted environments.
I know it's probably MIMA doing it by default and changing this requires work. But I really think implementing portability will make both me and lots of other people's life better.
quintesse commentedon Jan 21, 2026
Ok, I understand what you're saying. But I'd like to understand better how you'd see this work. Because like you said this is how MIMA does it. And it does it because that's how Maven and Gradle work. In your case, how do you normally manage Maven and Gradle? Because in the end it would be the most efficient if all could share the same cache.
xycabcd commentedon Jan 22, 2026
Since I'm not sure how many files does jpm read, I don't know how this should be done. But at least on my computer, I set
GRADLE_USER_HOME. And for Maven, I set<localRepository>${maven.home}/../repo</localRepository>inmaven-home/conf/settings.xml.At least in my opinion, if all files read are in a single directory, there should be a env var to change the directory's path. And if there's several separate files and dirs, there should be a env var for the path of each of them.
[-][Question] How to change the local cache directory?[/-][+][Question] How to change the local cache directory? (Or portability?)[/+]quintesse commentedon Jan 23, 2026
Ok, both
--cache(-c) flags have been added as well as aJPM_CACHEenv var. A new version of jpm is already available.