I have a series of Servlets and Servlet Filters in a maven project that are packaged into a jar and that jar is meant to be included in the /lib directory of a series of other "host" web applications. These Servlets are not meant to be run alone - and do not warrant their own war (it is not a stand-alone web app).
In my src/test/java directory I have some Mock objects that loosely mimic these "host" applications.
I am using cargo during my integration-test phase to start up an instance of tomcat, but I am having a hard time getting tomcat to use my mock "host" servlets in src/test/java.
Is there a recommended way to do this? Do I need to build a war from the sources in src/test/java first?
Also, I will need to move my actual project's jar to WEB-INF/lib before starting the container. I had considered using the maven assembly plugin to do this? Is there a way to do this with just cargo configuration options?
Thank you so much for any input.