refactored the pom to use profiles to remove redundant steps from build