We have to build a war and a jar from the same source codebase. The structure of the codebase is :
web/src/com/.... - contains java files
web/jsp - contains jsp files
web/css - contains css files
web/js - contains js files
we have to use maven for building the code. I understand the jar file can be created using exclude files. But, how to create the war file containing all the files. Using POM, we can create only single artifact.
Also, we have multiple projects say 10 projects which will generate 10 jars and a single war containing all jars with all jsps, css, js files.
How to achieve this using maven build?