Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: TAGLIST-0.5
-
Fix Version/s: TAGLIST-0.6
-
Component/s: TagList
-
Labels:None
-
Environment:OS: Windows with encoding cp1251
maven 2.2.1
-
Number of attachments :
Description
All java files are encoded in UTF-8.
After a mvn sonar:sonar:
- the taglist-maven-plugin generates a correct taglist.xml file (UTF-8)
- but sonar can't parse the file:
[INFO] Executing sensor class org.sonar.plugins.squid.SquidSensor
[INFO] Starting audit...
[INFO] Audit done.
[INFO] Executing sensor class org.sonar.plugins.taglist.TaglistSensor
[INFO] ------------------------------------------------------------------------
[INFO] Building Sanael - Domaine métier
[INFO] task-segment: [org.codehaus.mojo:taglist-maven-plugin:2.3:taglist]
[INFO] ------------------------------------------------------------------------
[INFO] [taglist:taglist
]
[Fatal Error] :10:30: Invalid byte 2 of 3-byte UTF-8 sequence.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Can not execute Sonar
Embedded error: can not parse xml : <?xml version="1.0" encoding="UTF-8"?>
<report>
<tags>
<tag name="TODO" count="17">
<files>
<file name="fr.arsoebr.bsr.domaine.planactions.intervention.Intervention" count="2">
<comments>
<comment>
<lineNumber>938</lineNumber>
<comment>A implémenter</comment>
</comment>
<comment>
<lineNumber>957</lineNumber>
...
The sonar-pom.xml contains following:
...
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<configuration>
<tags>
<tag>TODO</tag>
<tag>@todo</tag>
<tag>FIXME</tag>
<tag>XXX</tag>
</tags>
</configuration>
</plugin>
...
Issue Links
- is duplicated by
-
SONAR-1141
Can not execute Sonar : NullPointerException on multimodule project
-