Affected version
3.21.0
Bug description
I have the following site layout for a parent/children project:
When running mvn -X site-deploy in the foo project, chmod is called only once on the parent project, leaving permissions untouched on foo, foo-a and foo-b.
Ideally, chmod should be called for every site being deployed, and not only once for the parent site.
But more concerning is that changing permissions recursively on the parent site is inefficient and likely dangerous as it may affect permissions on projects that are unrelated to the one being deployed.