Why don't you use the constructor accepting groupId, artifactId and version and check the single values before?