SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-368

ScmException while parsing generated java files

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: SCM-ACTIVITY-0.1, SCM-ACTIVITY-0.2
    • Fix Version/s: SCM-ACTIVITY-1.0
    • Component/s: SCM Activity
    • Labels:
      None
    • Environment:
      Sonar 1.12, windows/linux
    • Number of attachments :
      1

      Description

      I receive a org.apache.maven.scm.ScmException while the SCM Plugin apparently parses generated java files. The files are a part of a web service client, generated with axis2 at build time.

      Attached a part of the build log.

        Activity

        Hide
        Evgeny Mandrikov added a comment -

        Thanks Mercer for your feedback. Currently there is no workaround for this bug, you can just disable plugin for this project.

        Show
        Evgeny Mandrikov added a comment - Thanks Mercer for your feedback. Currently there is no workaround for this bug, you can just disable plugin for this project.
        Hide
        Evgeny Mandrikov added a comment -

        And simple question: did you exclude generated sources from Sonar analyzes?

        Show
        Evgeny Mandrikov added a comment - And simple question: did you exclude generated sources from Sonar analyzes?
        Hide
        Mercer Traieste added a comment -

        Indeed, by excluded generated sources (which is itself a good practice, as I don't want sonar on generated sources), SCM plugin no longer throws the error.

        Show
        Mercer Traieste added a comment - Indeed, by excluded generated sources (which is itself a good practice, as I don't want sonar on generated sources), SCM plugin no longer throws the error.
        Hide
        Evgeny Mandrikov added a comment -

        So, you mean that plugin shouldn't fail if unable to analyze some source files?

        Show
        Evgeny Mandrikov added a comment - So, you mean that plugin shouldn't fail if unable to analyze some source files?
        Hide
        Mercer Traieste added a comment -

        I expected that it would distinguish generated from managed source files, and yes, not to fail in this case.

        Then again, sonar and the other plugins analyze generated sources, unless told not to.

        I guess quietly handling this case is a good solution for this issue.

        Show
        Mercer Traieste added a comment - I expected that it would distinguish generated from managed source files, and yes, not to fail in this case. Then again, sonar and the other plugins analyze generated sources, unless told not to. I guess quietly handling this case is a good solution for this issue.
        Hide
        Evgeny Mandrikov added a comment -

        Ok, I planned to fix this in next version.

        Show
        Evgeny Mandrikov added a comment - Ok, I planned to fix this in next version.
        Hide
        Mercer Traieste added a comment -

        Thanks, I will test it.

        Show
        Mercer Traieste added a comment - Thanks, I will test it.

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Mercer Traieste
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: