return "The users/developers need to know where to get active bugs and to report new ones to.";
}
@Override
public void invoke(MavenProject mavenProject, Map<String, Object> models, ResultCollector resultCollector) {
IssueManagement management = mavenProject.getIssueManagement();
if (null == management) {
final InputSource source = new InputSource();
source.setLocation(mavenProject.getOriginalModel().getPomFile() + "");
InputLocation location = new InputLocation(0, 0, source);
resultCollector.addViolation(mavenProject, this, "missing <issueManagement/> section", location);
} else {
if (StringUtils.isEmpty(management.getSystem())) {
resultCollector.addViolation(mavenProject, this, "missing <system/> entry in <issueManagement/> section", management.getLocation(""));
}
if (StringUtils.isEmpty(management.getUrl())) {
resultCollector.addViolation(mavenProject, this, "missing <url/> entry in <issueManagement/> section", management.getLocation(""));
}
}
}