* @throws MojoExecutionException
*/
protected RepositoryId getRepository(final MavenProject project,
final String owner, final String name)
throws MojoExecutionException {
RepositoryId repository = RepositoryUtils.getRepository(project, owner,
name);
if (repository == null)
throw new MojoExecutionException(
"No GitHub repository (owner and name) configured");
if (isDebug())
debug(MessageFormat.format("Using GitHub repository {0}",
repository.generateId()));
return repository;
}