Easy deploying process in overlays

34 Views Asked by At

I have two web applications Web-main and Web-sub, and a simple java project Maven-app.

Web-sub is having dependency of Maven-app.While, Web-main is having dependency of Web-sub.

Building Maven-app results in a jar file.Then, I build Web-sub which includes Maven-app's jar file and packaged into a war file.Finally, building Web-main results in a war file which contains war file of Web-sub.

Now, if I do any changes in my java project, I need to do all these installations again so that target war of my main Web-application(i.e. Web-main) contains the updated jar.

This becomes very tedious process when I have very minor changes(e.g. typo mistakes).

One solution could be to script on shell which will make this jar directly copied to war of Web-main, but I am not able to do it. How to do it ? Or Can I do it in other way which will speed up my build process?

0

There are 0 best solutions below