title: Maven Dependencies that read property files
body: <p>I have a java project named dbstuff which reads properties from <code>db.properties</code> with <code>getClass().getResourceAsStream("/db.properties")</code>. The values are things like connection strings, etc. This dbstuff is used in various projects most of them are web. </p>
  
  <p>I now have a dropwizard project (maven) which uses <code>dbstuff.jar</code> as a dependency, this project is compiled as a fat jar as described <a href="http://dropwizard.codahale.com/getting-started/#building-fat-jars" rel="nofollow">here</a>, at the moment the dbstuff only read values from <code>db.properties</code> if the file is present in <code>/src/main/resources</code>, and when the package is created the <code>db.properties</code> becomes embedded in the jar.</p>
  
  <p>What i want to achieve is to make <code>db.properties</code> external, so that i can have various <code>db.properties</code> (one for each environment) but only one dropwizard jar, is this possible?</p>
  
  <p>thank you</p>