Minor code changes
check artifact.getScope() == 'system' first
IDEA-98479 Multimodule maven project - unable to remove module without compile errors