No source lines available (Sonar 1.9)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

No source lines available (Sonar 1.9)

Joster
Hi,

Everything was fine with sonar 1.8. But we have realized that the source code doesn't appear anymore in sonar 1.9.


We use sonar maven plugin 1.9 with maven 2.0.10.

Here are our sonar properties:

<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.surefire.reportsPath>target/surefire-reports</sonar.surefire.reportsPath>
<sonar.clover.reportPath>target/site/clover/clover.xml</sonar.clover.reportPath>


Any ideas?

Regards,
J.
Reply | Threaded
Open this post in threaded view
|

Re: No source lines available (Sonar 1.9)

Freddy Mallet
Hi Jose,

I hope your issue relates to SONAR-866 which is fixed in Sonar 1.9.1 [1].

Could provide the maven log file generated when analysing one of your project with sonar ?

What is your environment (os, maven version, ...) ? 

Thanks for your help,
Freddy

[1] - http://jira.codehaus.org/browse/SONAR-866

On Fri, Jun 5, 2009 at 3:47 PM, Joster <[hidden email]> wrote:

Hi,

Everything was fine with sonar 1.8. But we have realized that the source
code doesn't appear anymore in sonar 1.9.


We use sonar maven plugin 1.9 with maven 2.0.10.

Here are our sonar properties:

<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.surefire.reportsPath>target/surefire-reports</sonar.surefire.reportsPath>
<sonar.clover.reportPath>target/site/clover/clover.xml</sonar.clover.reportPath>


Any ideas?

Regards,
J.
--
View this message in context: http://www.nabble.com/No-source-lines-available-%28Sonar-1.9%29-tp23888553p23888553.html
Sent from the Sonar user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: No source lines available (Sonar 1.9)

Joster
Hi,

Environment:
java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_18-b02, mixed mode)

Maven version: 2.0.10
OS name: "linux" version: "2.6.28-11-generic" arch: "amd64" Family: "unix"


Logs:

INFO] ------------------------------------------------------------------------
[INFO] Building XXXX Services
[INFO]    task-segment: [org.apache.maven.plugins:maven-pmd-plugin:2.4:pmd]
[INFO] ------------------------------------------------------------------------
[INFO] [pmd:pmd]
[HUDSON] Archiving ...
...
[INFO] XXXX Services Executing org.apache.maven.plugins:maven-checkstyle-plugin:[checkstyle]
[INFO] ------------------------------------------------------------------------
[INFO] Building XXXX Services
[INFO]    task-segment: [org.apache.maven.plugins:maven-checkstyle-plugin:2.2:checkstyle]
[INFO] ------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle]
[INFO] There are 40 checkstyle errors.
[HUDSON] Archiving ....
....
[INFO] XXXX Services Executing org.apache.maven.plugins:maven-surefire-plugin:[]
[INFO] XXXX Services [class org.sonar.plugins.pmd.PmdMavenCollector] executing
[INFO] XXXX Services [class org.sonar.plugins.squid.SquidMavenCollector] executing
[INFO] XXXX Services Starting audit...
[INFO] XXXX Services Audit done.
[INFO] XXXX Services [class org.sonar.plugins.core.SaveProfileMavenCollector] executing
[INFO] XXXX Services [class org.sonar.plugins.core.sources.ImportJavaSourcesMavenCollector] executing
[INFO] XXXX Services [class org.sonar.plugins.core.SaveProjectLinksFromPom] executing
[INFO] XXXX Services [class org.sonar.plugins.checkstyle.CheckstyleMavenCollector] executing
[INFO] XXXX Services [class org.sonar.plugins.cpd.CpdMavenCollector] executing
[INFO] XXXX Services Collecting duplications...
[INFO] XXXX Services File suffixes : java
[INFO] XXXX Services Exclusions : {}
[WARN] XXXX Services CPD - File not found : /opt/hudson/work/jobs/XXXXX.java
[WARN] XXXX Services CPD - File not found : /opt/hudson/work/jobs/XXXXX.java
...
...
[INFO] XXXX Services [class org.sonar.plugins.clover.Clover1MavenCollector] executing
[INFO] XXXX Services Parsing /mnt/raid/hudson/work/jobs/XXXXX/target/site/clover/clover.xml
[INFO] XXXX Services [class org.sonar.plugins.surefire.SurefireMavenCollector] executing
[INFO] XXXX Services parsing /opt/hudson/work/jobs/XXXXX/target/surefire-reports
[INFO] XXXX Local Facade Selected quality profile : Sonar way, language=java
[INFO] XXXX Local Facade Executing org.apache.maven.plugins:maven-pmd-plugin:[pmd]


The CPD part is quite weird (File not found...)

Regards,
J.


Freddy Mallet wrote
Hi Jose,
I hope your issue relates to SONAR-866 which is fixed in Sonar 1.9.1 [1].

Could provide the maven log file generated when analysing one of your
project with sonar ?

What is your environment (os, maven version, ...) ?

Thanks for your help,
Freddy

[1] - http://jira.codehaus.org/browse/SONAR-866

...
Reply | Threaded
Open this post in threaded view
|

Re: No source lines available (Sonar 1.9)

Freddy Mallet
Joster, we will release Sonar 1.9.1 on monday. According to the maven log (CPD error message), the problem relates to SONAR-866 and should be fixed with version 1.9.1.

Regards,
Freddy

On Fri, Jun 5, 2009 at 4:13 PM, Joster <[hidden email]> wrote:

Hi,

Environment:
java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_18-b02, mixed mode)

Maven version: 2.0.10
OS name: "linux" version: "2.6.28-11-generic" arch: "amd64" Family: "unix"


Logs:

INFO]
------------------------------------------------------------------------
[INFO] Building XXXX Services
[INFO]    task-segment: [org.apache.maven.plugins:maven-pmd-plugin:2.4:pmd]
[INFO]
------------------------------------------------------------------------
[INFO] [pmd:pmd]
[HUDSON] Archiving ...
...
[INFO] XXXX Services Executing
org.apache.maven.plugins:maven-checkstyle-plugin:[checkstyle]
[INFO]
------------------------------------------------------------------------
[INFO] Building XXXX Services
[INFO]    task-segment:
[org.apache.maven.plugins:maven-checkstyle-plugin:2.2:checkstyle]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle]
[INFO] There are 40 checkstyle errors.
[HUDSON] Archiving ....
....
[INFO] XXXX Services Executing
org.apache.maven.plugins:maven-surefire-plugin:[]
[INFO] XXXX Services [class org.sonar.plugins.pmd.PmdMavenCollector]
executing
[INFO] XXXX Services [class org.sonar.plugins.squid.SquidMavenCollector]
executing
[INFO] XXXX Services Starting audit...
[INFO] XXXX Services Audit done.
[INFO] XXXX Services [class
org.sonar.plugins.core.SaveProfileMavenCollector] executing
[INFO] XXXX Services [class
org.sonar.plugins.core.sources.ImportJavaSourcesMavenCollector] executing
[INFO] XXXX Services [class org.sonar.plugins.core.SaveProjectLinksFromPom]
executing
[INFO] XXXX Services [class
org.sonar.plugins.checkstyle.CheckstyleMavenCollector] executing
[INFO] XXXX Services [class org.sonar.plugins.cpd.CpdMavenCollector]
executing
[INFO] XXXX Services Collecting duplications...
[INFO] XXXX Services File suffixes : java
[INFO] XXXX Services Exclusions : {}
[WARN] XXXX Services CPD - File not found : /opt/hudson/work/jobs/XXXXX.java
[WARN] XXXX Services CPD - File not found : /opt/hudson/work/jobs/XXXXX.java
...
...
[INFO] XXXX Services [class org.sonar.plugins.clover.Clover1MavenCollector]
executing
[INFO] XXXX Services Parsing
/mnt/raid/hudson/work/jobs/XXXXX/target/site/clover/clover.xml
[INFO] XXXX Services [class
org.sonar.plugins.surefire.SurefireMavenCollector] executing
[INFO] XXXX Services parsing
/opt/hudson/work/jobs/XXXXX/target/surefire-reports
[INFO] XXXX Local Facade Selected quality profile : Sonar way, language=java
[INFO] XXXX Local Facade Executing
org.apache.maven.plugins:maven-pmd-plugin:[pmd]


The CPD part is quite weird (File not found...)

Regards,
J.



Freddy Mallet wrote:
>
> Hi Jose,
> I hope your issue relates to SONAR-866 which is fixed in Sonar 1.9.1 [1].
>
> Could provide the maven log file generated when analysing one of your
> project with sonar ?
>
> What is your environment (os, maven version, ...) ?
>
> Thanks for your help,
> Freddy
>
> [1] - http://jira.codehaus.org/browse/SONAR-866
>
> ...
>
>

--
View this message in context: http://www.nabble.com/No-source-lines-available-%28Sonar-1.9%29-tp23888553p23889039.html
Sent from the Sonar user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email