JENKINS-18455 - remove extra maven modules from all slicing

This is an application of the previous fix for JENKINS-18455 across all configuration slicing implementations supported