Hi everyone! I have some problems with a project I hope someone could help me to resolve them.
We are in the middle of a big refactor in a project where there are different approaches for the same logic. Each approach is supposed to include only the view layer of the application so they only contain Spring MVC controllers, tiles xml configuration and jsps. There is also a main web project with the login logic, filters and the other web stuff.
What we want to do is to create these approaches in a way they could be included or not in the final project (the main web project) as
maven dependencies. The problem is we don't know how to define these modules so, when creating the final artifact, the webContent will be copied into the webContent of the web application. Also, there is another question. Should the
java binaries for the controllers be copied with the other binaries of the web app or they should be inside a jar file as a dependency?Which should we use to create these modules, war or jar?
I've being reading about the assembly plugin but I don't know exactly how to use it to do this or if may be another option.
Thank you in advance!