SonarQube Eclipse
  1. SonarQube Eclipse
  2. SONARIDE-350

Don't pass not existing libraries to sonar.libraries

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: Java
    • Labels:
      None
    • Number of attachments :
      0

      Description

      http://sonar.15.n6.nabble.com/Sonar-Eclipse-3-0-failing-to-analyse-Findbugs-tp5007752p5007868.html

      When a Java project reference a library (JAR) that include a classpath entry in its MANIFEST then Eclipse returns these additional JAR in the project classpath. If these JAR are not present on the filesystem then Sonar local analysis will fail.

      One possible solution would be to check for existence of JAR entry before passing it to sonar.libraries.

        Activity

        Hide
        Julien HENRY added a comment -

        IT added

        Show
        Julien HENRY added a comment - IT added
        Hide
        Fabrice Bellingard added a comment -

        The first test I've made fails:

        • created a "lib" folder in my project with a JAR inside
        • added that JAR to the CP of my project
        • launched a Sonar local analysis => OK
        • deleted the JAR from the filesystem
        • relaunched a local analysis => KO
        Show
        Fabrice Bellingard added a comment - The first test I've made fails: created a "lib" folder in my project with a JAR inside added that JAR to the CP of my project launched a Sonar local analysis => OK deleted the JAR from the filesystem relaunched a local analysis => KO
        Hide
        Julien HENRY added a comment -

        Fixed case when workspace is out of sync and IT updated.

        Show
        Julien HENRY added a comment - Fixed case when workspace is out of sync and IT updated.
        Hide
        Fabrice Bellingard added a comment -

        Tested!

        Show
        Fabrice Bellingard added a comment - Tested!

          People

          • Assignee:
            Julien HENRY
            Reporter:
            Julien HENRY
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: