sous-chefs / maven

Development repository for the maven cookbook
https://supermarket.chef.io/cookbooks/maven
Apache License 2.0
36 stars 153 forks source link

add option for setting owner for maven #82

Closed stevegal closed 6 years ago

stevegal commented 7 years ago

Cookbook: 4.0.1 Chef: 12

when installing maven I cannot specify a user/group other than root, limiting the use cases for maven installed in this way

iennae commented 7 years ago

@stevegal it looks like you can set the user/group with the attribute owner and group for the maven resource. Check out example: https://github.com/chef-cookbooks/maven/blob/master/test/fixtures/cookbooks/test/recipes/default.rb#L30

Please let us know if you are having issues with this or if there is something else you are asking about in this issue.

stevegal commented 7 years ago

that's cool for downloading dependencies from the cookbook. I was talking about if you need to use maven for other purposes rather than just the downloading a specific thing, for example for doing a build.