Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical 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 :
      0

      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

      {execution: default-cli}

      ]
      [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

          Activity

          Hide
          Sebastien Gringoire added a comment -

          Sorry, this problem concerns the TAGLIST-0.5 version of the plugin.

          Show
          Sebastien Gringoire added a comment - Sorry, this problem concerns the TAGLIST-0.5 version of the plugin.
          Hide
          Olivier Gaudin added a comment -

          Sebastien, Can you test with the new version (http://snapshots.repository.codehaus.org/org/codehaus/sonar-plugins/sonar-taglist-plugin/0.6-SNAPSHOT/sonar-taglist-plugin-0.6-SNAPSHOT.jar) and let me know if you issue is resolved ? The plugin is now using taglist 2.4.

          Show
          Olivier Gaudin added a comment - Sebastien, Can you test with the new version ( http://snapshots.repository.codehaus.org/org/codehaus/sonar-plugins/sonar-taglist-plugin/0.6-SNAPSHOT/sonar-taglist-plugin-0.6-SNAPSHOT.jar ) and let me know if you issue is resolved ? The plugin is now using taglist 2.4.
          Hide
          Sebastien Gringoire added a comment -

          Thanks Olivier, the new version 0.6-SNAPSHOT resolved the issue.

          Show
          Sebastien Gringoire added a comment - Thanks Olivier, the new version 0.6-SNAPSHOT resolved the issue.

            People

            • Assignee:
              Olivier Gaudin
              Reporter:
              Sebastien Gringoire
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: