SonarQube Eclipse
  1. SonarQube Eclipse
  2. SONARIDE-271

Issue during local analysis in conjunction with linked resources

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 3.0
    • Component/s: Local Mode
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Description
      It's not possible to launch a local analysis successfully if the Java build output folder path of the Eclipse project contains a linked resource. This may be required to be able to let Eclipse compile the Java sources to a folder outside project source folder.

      For example:

      • eclipse project 'foo'
      • the default output folder for the java builder is set to 'foo/release_lib'
      • a linked resource exists where 'release_lib points' to 'ECLIPSE_TARGET\foo\release\lib'
      • 'ECLIPSE_TARGET' is defined as Eclipse path variable which points to 'c:\dev\target'

      Stacktrace

      Registered 104 metrics
      Registered repository findbugs/java with 384 rules
      Registered repository checkstyle/java with 122 rules
      Registered repository pmd/java with 224 rules
      Registered repository squid/java with 12 rules
      Selected quality profile : [name=Test,language=java]
      Sensor JavaSourceImporter...
      Sensor JavaSourceImporter done: 1453 ms
      Sensor SquidSensor...
      Java AST scan...
      Java AST scan done: 1859 ms
      Java bytecode scan...
      Class 'com/foo/bar/Class1' is not accessible through the ClassLoader.
      Class 'com/foo/bar/Class2' is not accessible through the ClassLoader.
      Class 'com/foo/bar/Class3' is not accessible through the ClassLoader.
      Class 'com/foo/bar/Class4' is not accessible through the ClassLoader.
      ...
      Java bytecode scan done: 688 ms
      Java Squid scan...
      Java Squid scan done: 0 ms
      Squid extraction...
      Package design analysis...
      Package design analysis done: 0 ms
      Squid extraction done: 297 ms
      Sensor SquidSensor done: 2985 ms
      Sensor FindbugsSensor...
      Execute Findbugs 1.3.9...
      Found findbugs plugin: file:/C:/development/workspace/.metadata/.plugins/org.sonar.ide.eclipse.runtime/sonar-plugins/sonar-findbugs-plugin-2.8.jar/META-INF/lib/findbugs-1.3.9.jar
      Loaded plugin edu.umd.cs.findbugs.plugins.core
      

        Activity

        Hide
        Nirav Shah added a comment -

        any workaround for this issue?

        Show
        Nirav Shah added a comment - any workaround for this issue?
        Hide
        Julien HENRY added a comment - - edited

        Fixed at least for the provided use case. Please note that linked resources are a "mess" that is not always supported by plugins.
        For example with m2e there is an issue: .class will go to the external (linked) folder while resources are copied to the original folder...

        Show
        Julien HENRY added a comment - - edited Fixed at least for the provided use case. Please note that linked resources are a "mess" that is not always supported by plugins. For example with m2e there is an issue: .class will go to the external (linked) folder while resources are copied to the original folder...
        Hide
        Freddy Mallet added a comment -

        Manually tested !

        Show
        Freddy Mallet added a comment - Manually tested !

          People

          • Assignee:
            Julien HENRY
            Reporter:
            George G. Fishing
          • Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: