Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-25

Do not execute checkstyle when the project has no sources and when checkstyle is triggered through checkstyle:check

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • None
    • None

    Description

      It's nice to be able to share the checkstyle config in a parent pom. However doing so leads to an error:

      C:\dev\cargo\trunk>mvn clean install
      [...]
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Cargo Core
      [INFO] task-segment: [clean, install]
      [INFO] ----------------------------------------------------------------------------
      [...]
      [INFO] Preparing checkstyle:check
      [...]
      [INFO] [checkstyle:checkstyle]
      [INFO] ----------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ----------------------------------------------------------------------------
      [INFO] An error has occurred in Checkstyle report generation.

      Embedded error: No source directory to process for checkstyle
      [INFO] ----------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ----------------------------------------------------------------------------
      [INFO] Total time: 19 seconds
      [INFO] Finished at: Fri Dec 30 19:40:19 CET 2005
      [INFO] Final Memory: 8M/15M
      [INFO] ----------------------------------------------------------------------------

      Attachments

        Issue Links

          Activity

            People

              fgiust Fabrizio Giustina
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: