title: The best way to distribute this framework
body: <p>I just created a framework (it would be more accurate to describe it as an integration), and I'm wondering what would be the best way to distribute it. The project is mavenized and uses Spring 3, but I am a novice in both areas and I am not sure what would be the best way to distribute this.</p>
  
  <p>The framework involves an integration between a Javascript library that I created, Spring 3 (the web MVC part), and Hibernate Validator.</p>
  
  <ul>
  <li>I have a <code>pom.xml</code> for the whole project.</li>
  <li>I have a <code>src/main/java</code> (properly namespaced) with the classes relevant to the integration.</li>
  <li>I have a <code>webapp</code> directory with a <code>js</code> folder that contains the Javascript files necessary for this integration.</li>
  <li>I have a <code>WEB-INF/tlds</code> directory with a tld for a custom tag implemented in Java.</li>
  <li>I have a <code>WEBINF/tags</code> directory for a custom tag.</li>
  <li>I have an <code>applicationContext.xml</code> in <code>src/main/resources</code>.</li>
  <li>I have a <code>springmvc-servlet.xml</code> in <code>WEB-INF</code>.</li>
  <li>I have a <code>web.xml</code> in <code>WEB-INF</code> (looks to be standard and out of the box; I don't recall making any changes).</li>
  <li>I have a <code>src/test/java/</code> that includes tests for the integration framework</li>
  </ul>
  
  <p>What files/directories should I include/exclude, and what would be a good way to distribute this integration (for Spring 3 that is)? Is there a standard?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Sorry I wasn't cleared about what I meant by "distribute" :) I meant in the sense that other developers can include this framework as an artifact in their project (perhaps as a jar), similar to how libraries are distributed. I'm just confused by the fact that there is webapp-specific stuff in there.</p>