797836 wrote:Why do you want to make them JARs?
I have 3 folders in my web project , those are Common, Service, DAO for each of these folders I need to create a JAR.
Which should be finally compressed in a WAR to be deployed in tomcat. Whether we can have multiple JARS inside a WAR?Yes, you can have jar files inside wars. That's how many libraries are included.
If so how we can go about this in writing the any build file?First create the jars, then create the war and include the jars in it.