Currently, I am diving into comet programming and utilizing the cometd implementation along with the JavaScript dojo library before deploying my war files to GlassFish. The issue I have encountered is that every time I create a new project, I find myself including the entire dojo library in each war file. Despite my attempt to copy only the necessary elements of the dojo library while retaining the same path structure, the solution did not yield positive results.
Is there a way for me to avoid repeatedly including the entire dojo library when creating a new Java EE package for deployment on GlassFish?