title: how to set permissions of files downloaded to common local maven repository
body: <p>I wish to set up a common local maven repository on a build server which all users with accounts on that server in the <code>dev</code> group would be able to access when running builds with maven.</p>
  
  <p>This is easily enough done you just add a &lt;localRepository&gt; tag.  But the problem is that permissions on the files that get downloaded from central to the local repository are <code>-rw-r-----</code> whereas I want <code>-rw-rw----</code>.</p>
  
  <p>Is there a maven setting that does this or is a system setting required?</p>
  
  <p>Update: Excuse me for living.
  OF COURSE I looked at the official Maven sites.  There are no documents that talk to my use case. I looked <a href="https://maven.apache.org/ref/3.3.9/maven-settings/settings.html" rel="nofollow">here</a> and <a href="https://maven.apache.org/guides/mini/guide-configuring-maven.html" rel="nofollow">here</a>.  There are &lt;filePermissions&gt; and &lt;directoryPermissions&gt; elements for the &lt;server&gt; element, but they do not cover the permissions on files downloaded FROM the server.</p>
  
  <p>Update 2:  This is not a "build machine" in the sense of Continuous Integration or anything like that.  It is a place where developers can do "local-ish" test builds from which easy access to development servers is also possible, something that is not available from their local machines.  The purpose here is saving disk space.  And this use case is <strong>specifically mentioned</strong> in <a href="https://maven.apache.org/settings.html" rel="nofollow">Maven documentation</a> which says: </p>
  
  <blockquote>
    <p>localRepository: This value is the path of this build system’s local
    repository. The default value is ${user.home}/.m2/repository. This
    element is especially useful for a main build server allowing all
    logged-in users to build from a common local repository.</p>
  </blockquote>
  
  <p>But the question of download file permissions is nowhere mentioned.</p>