@Override public String toString() { return generateId(); } }
@Override public int hashCode() { return generateId().hashCode(); }
/** * Get repository and throw a {@link MojoExecutionException} on failures * * @param project * @param owner * @param name * @return non-null repository id * @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; }
/** * Get repository and throw a {@link MojoExecutionException} on failures * * @param project * @param owner * @param name * @return non-null repository id * @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; }