Sonar CSharp Plugins L'écosystème génère des erreurs à la fin du traitement.
J'ai vérifié le fichier coverage-report.xml et n'inclut qu'une ligne.Sonar - CSharp Plugins Ecosystème - Impossible d'exécuter Sonar: Erreur lors de la tentative d'obtention du nom d'élément suivant
<PartCoverReport version="4.0" date="2011-08-10T10:09:12.1721003+08:00" />
Je pense que c'est la raison possible de l'erreur.
Comment puis-je résoudre ce problème? Est-ce un problème de configuration?
Merci d'avance.
S'il vous plaît voir morceau de message d'erreur ci-dessous:
...
[INFO] Sensor [email protected]
[INFO] Microsoft (R) FxCop Command-Line Tool, Version 10.0 (10.0.30319.1) X86
[INFO] Copyright (C) Microsoft Corporation, All Rights Reserved.
[INFO]
[INFO] Loading C:\JanusPilot\SonarDotnetExample\Example.Application\target\sonar \sonar.FxCop...
[INFO] Loaded DesignRules.dll...
[INFO] Loaded GlobalizationRules.dll...
[INFO] Loaded NamingRules.dll...
[INFO] Loaded PerformanceRules.dll...
[INFO] Loaded Example.Application.exe...
[INFO] Initializing Introspection engine...
[INFO] Analyzing...
[INFO] Analysis Complete.
[INFO] Writing 1 messages...
[INFO] Writing report to C:\JanusPilot\SonarDotnetExample\Example.Application\t
arget\sonar\fxcop-report.xml...
[INFO] Done:00:00:01.1050632
[INFO] Sensor [email protected] done: 2342 ms
[INFO] Sensor [email protected]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:14.037s
[INFO] Finished at: Wed Aug 10 10:13:29 CST 2011
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0-beta-2:s
onar (default-cli) on project example: Can not execute Sonar: Error while trying
to get the next element name: ParseError at [row,col]:[1,75]
[ERROR] Message: Can not call 'getLocalName(): cursor does not point to a valid
node (curr event [null]; cursor state CLOSED)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
J'ai essayé le ncover3 et cela fonctionne. Mon poste de travail local est windows7 (64 bits). Je pense que la partcover ne supporte pas pleinement les windows7 (64 bits). Merci pour votre réponse. – robinqiao