Throw exception if declared POM dependency version cannot be resolved.