if (i18n == null){
i18n = (I18N) helper.getComponent(I18N.class);
}
DependencyNode node = getNode(helper);
MavenProject project = (MavenProject) helper.evaluate("${project}");
DependencyVersionMap visitor = new DependencyVersionMap(project.getArtifact().isRelease(), log);
node.accept(visitor);
List<CharSequence> errorMsgs = new ArrayList<CharSequence>();
errorMsgs.addAll(getConvergenceErrorMsgs(visitor.getConflictedVersionNumbers()));
for (CharSequence errorMsg : errorMsgs) {
log.error(errorMsg);
}
if (errorMsgs.size() > 0) {
throw new EnforcerRuleException("Failed while enforcing releasability the error(s) are " + errorMsgs);