ruleSet.setName("M2Eclipse PMD RuleSet");
final List<String> rulesetStringLocations = pluginCfgTranslator.getRulesets();
for (final String loc : rulesetStringLocations) {
RuleSetReferenceId ruleSetReferenceId = new RuleSetReferenceId(loc);
final URL resolvedLocation = resourceResolver.resolveLocation(ruleSetReferenceId.getRuleSetFileName());
if(resolvedLocation == null) {
throw new PMDException(String.format("Failed to resolve RuleSet from location [%s],SKIPPING Eclipse PMD configuration", loc));
}
RuleSet ruleSetAtLocations;
try {
RuleSetReferenceId resolvedRuleSetReference = new RuleSetReferenceId(loc) {
@Override
public InputStream getInputStream(ClassLoader arg0) throws RuleSetNotFoundException {
try {
return resolvedLocation.openStream();
} catch (IOException e) {