Altered getArtifactInfo to use common method and a formatter.
Altered pomExists and artifact exists to be shorter.