change logic of getFromMaven to support snapshot