How to create Two java webapps and mutualize jar dependencies& others files?
<p>We have currently a web application for webservices (named ws-project). It uses 2 others projects : </p>

<ul>
<li>dao-project (hibernate) </li>
<li>core-project (pojo) </li>
</ul>

<p></p>

<pre><code>ws-project (war)  
 |   
 +--dao-project (jar)   
 +--core-project (jar)   
</code></pre>

<p>We are using maven &amp; spring frameworks.  (&amp; eclipse)</p>

<p>We would like to have a second web project displaying web pages using spring-mvc (&amp; jsp) </p>

<pre><code>web-project (war)   
 |  
 +--dao-project (jar)  
 +--core-project (jar)  
</code></pre>

<p>The problem is that we will have 2 web-apps.
And after the deploying, each webapp will contains  in /lib the 2 jars (dao-project.jar &amp; core-project.jar). Each of them will have their own datasource &amp; spring container invoked. </p>

<p>So we are thinking to do like usually, just one webapp mixing webservices &amp; webpages. </p>

<p>Any solution to have a clean separation without those drawbacks? </p>

<p>Thanks in advance for your help, i appreciate, really.</p>
