Closed jlandahl closed 11 years ago
+1 please merge
:+1: (cool to see that this fix has been recently reviewed by opscode team :)
One more word on this request:
I am not sure that /usr/local/m2/repository
is a good repository_root
default value for user-wide /etc/mavenrc
. Unless the cookbook offers a way to extend/customize the write permissions on the repository root (non-root ownership, or chmod 2775
tricks like this one, for instance), I think it is not convenient to refer to a "read-only" repository (forcing 'root' or sudo to install more dependencies).
I therefore think that setting default['maven']['repository_root'] = $HOME/.m2/repository
in attributes/default.rb would better suites the general maven usage (dev boxes, build boxes).
@jlandahl If, as I guess, you share this opinion, I would encourage you to try to pack this change in COOK-3352 request.
@jlandahl please have a look into #24, I think make things even more easier and flexible...
Merged in 6b7c593
http://tickets.opscode.com/browse/COOK-3352
This will allow for full customization, e.g. to allow the standard behavior of having the local repository in $HOME/.m2/repository.