reworked to extract contents of artifacts before deploying to tomcat