Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
Description
The PMD rule 'Avoid Duplicate Literals' induces error while parsing the file pmd.xml. The java file seems to have the EUR symbol (€) directly in the source.
pmd.xml :
<violation line="164" rule="AvoidDuplicateLiterals" ruleset="String and StringBuffer Rules" package="xxxxxx" class="xxxxx" method="exportToPDF" externalInfoUrl="http://pmd.sourceforge.net/rules/strings.html#AvoidDuplicateLiterals" priority="3">
The String literal " &u20ac; TTC\n" appears 3 times in this file; the first occurrence is on line 164
</violation>
[Fatal Error] pmd.xml:117:34: The entity "u20ac" was referenced, but not declared.
[ERROR] Cannot execute the command org.codehaus.sonar:sonar-core-maven-plugin::collect
ch.hortis.sonar.mvn.mc.XmlParserException: can not parse the file .....\trunk\target\pmd.xml
at ch.hortis.sonar.mvn.mc.XmlReportParser.parse(XmlReportParser.java:72)
at ch.hortis.sonar.mvn.mc.PMDCollector.initialize(PMDCollector.java:47)
at ch.hortis.sonar.mvn.mc.BaseMeasuresCollector.initialize(BaseMeasuresCollector.java:58)
at ch.hortis.sonar.mvn.CollectMojo.collectAndPersist(CollectMojo.java:269)
at ch.hortis.sonar.mvn.CollectMojo.collect(CollectMojo.java:321)
Should be fixed with the PMD 4.1 upgrade. See http://jira.codehaus.org/browse/SONAR-64