Mojo's JavaNCSS Maven Plugin
  1. Mojo's JavaNCSS Maven Plugin
  2. MJNCSS-27

Do not let the check goal fail the build for projects with no source

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2, 2.0
    • Fix Version/s: 2.0
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When the check goal is executed on a project with no source (only modules) then the build fails because the javancss-raw-report.xml file is not generated and can thus not be found. The proposed improvement enables the global configuration of this plugin for all modules.

      It seems that a possible fix is to add a check for the existence of the xml file in the NcssViolationCheckMojo.execute method.

        Issue Links

          Activity

            People

            • Assignee:
              Jean-Laurent de Morlhon
              Reporter:
              Martijn Hendriks
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: