I want to develop two web applications having common web resources like css, js and jsp files. How can I share these files between two java web application. I am using Spring-MVC.
One possible solution is to make a share web application and share it in two projects. But it is not possible to add a war file as dependency.
Asked
Active
Viewed 13 times
0

Dariush Jafari
- 5,223
- 7
- 42
- 71
-
Are you using Maven? – Tunaki Nov 14 '15 at 15:07
-
Yes. I am using maven – Dariush Jafari Nov 14 '15 at 15:08
-
Try the overlay feature from maven-war-plugin: https://maven.apache.org/plugins/maven-war-plugin/overlays.html – Ralph Nov 14 '15 at 15:50