title: Static asset manager for Java webapps
body: <p>Not a Java guy here, so forgive me if this is something trivial.</p>
  
  <p>Most modern web application frameworks support some sort of asset manager that allows for easy script or stylesheet inclusion and also commonly supports the notion of bundling and minification.</p>
  
  <p>Are there any such libraries for Java based webapps?  I am using Spring 3.x</p>
  
  <p>Right now, we just have a build script that has hardcoded lists of assets that should be bundled together and in our code we have something like (pseudo code):</p>
  
  <pre><code>if (production) {
     &lt;script src="bundle1.js"&gt;
  } else {
     &lt;script src="file1.js"&gt;
     &lt;script src="file2.js"&gt;
     &lt;script src="file3.js"&gt;
  }
  </code></pre>
  
  <p>This is much less than ideal - who wants to update a hard coded list? </p>