Extract external maven dependencies into profiles

Extract external maven dependencies into profiles