We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
since I like to keep my home folder clean, I have changed the maven config according to this site: https://wiki.archlinux.org/index.php/XDG_Base_Directory
This way, I've got my settings.xml file in ~/.config/maven/settings.xml. Within my settings.xml file I've got this:
~/.config/maven/settings.xml
settings.xml
<localRepository>${env.XDG_CACHE_HOME}/maven/repository</localRepository>
With this aliases this works fine:
alias mvn="mvn -gs $XDG_CONFIG_HOME/maven/settings.xml" alias mvnd="mvnd -gs $XDG_CONFIG_HOME/maven/settings.xml"
Except for the fact that mvnd is still creating some files in the .m2 folder:
mvnd
.m2
❯ ls -l ~/.m2/mvnd/registry/0.4.1/ total 8784 -rw-r--r-- 1 samir samir 6292122 Feb 15 17:32 daemon-244f1c67.log -rw-r--r-- 1 samir samir 0 Feb 15 16:12 daemon-244f1c67.out.log -rw-r--r-- 1 samir samir 2682989 Feb 12 19:56 daemon-6db22e38.log -rw-r--r-- 1 samir samir 0 Feb 12 16:53 daemon-6db22e38.out.log -rw-r--r-- 1 samir samir 2498 Feb 12 16:53 purge-2021-02-12.log -rw-r--r-- 1 samir samir 266 Feb 15 16:12 purge-2021-02-15.log -rw-r--r-- 1 samir samir 32768 Feb 15 17:24 registry.bin
The text was updated successfully, but these errors were encountered:
Try with
alias mvnd="mvnd -Dmvnd.daemonStorage=$XDG_CONFIG_HOME/mvnd -gs $XDG_CONFIG_HOME/maven/settings.xml"
See mvnd --help for a list of all options.
mvnd --help
Sorry, something went wrong.
Thanks, works.
Although I am not exactly sure if this should go in .config or rather .cache directory.
.config
.cache
Maybe you could consider adapting the defaults to the XDG standards?
No branches or pull requests
Hi,
since I like to keep my home folder clean, I have changed the maven config according to this site: https://wiki.archlinux.org/index.php/XDG_Base_Directory
This way, I've got my settings.xml file in
~/.config/maven/settings.xml
. Within mysettings.xml
file I've got this:With this aliases this works fine:
Except for the fact that
mvnd
is still creating some files in the.m2
folder:The text was updated successfully, but these errors were encountered: