title: Renaming resources in Maven
body: <p>I am trying to find a way to copy a resource file to a new name in the target directory in a Maven build. Pretty much everything I have found while searching suggests workarounds involving multiple sub-directories in <code>/src/main/resources</code> and selecting among them via profiles. However, in my case, this does not solve the problem, namely that the file I want has a "magic" name.</p>
  
  <p>Basically what I want to do is have a <code>/src/main/resources/default.DS_Store</code> file get copied to <code>${project.build.directory}/.DS_Store</code>. Since the <code>.DS_Store</code> file has special meaning in Mac OSX, it is not desirable to have a file with that name in the source tree, and in version control. However, I do want the data in the file to be in the source tree and version control, and have it renamed to the "magic" name during the build.</p>
  
  <p>I'm starting to think that ant is the only way to do this automatically. Is there any easier way?</p>