title: Maven overwrite resource file in dependency
body: <p>I have two Maven modules, <code>A</code> and <code>B</code>. <code>A</code> is a dependency of <code>B</code>. Both modules have a resource file named <code>default.properties</code> located in <code>src/main/resources</code>. I need to keep the filenames the same and the location of the file the same in both projects because both <code>A</code> and <code>B</code> are using code which expects the file to be named and located where it is. When building <code>B</code>, <code>A</code>'s default properties is in the final <code>jar</code>. I wish to have <code>B</code>'s properties when I build <code>B</code>. How can I do this?</p>