AMQ-5028: merge update from dkulp: strip unused dependencies to reduce the size of the WAR file.