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

LicenseResourceManager component is not thread safe and causes parallel build failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.12, 2.12.1
    • 2.13
    • None
    • None

    Description

      LicenseResouceManager component does not specify instantiation strategy. By default plexus uses singleton strategey which leads to ConcurrentModificationException in parallel maven builds.

      Example: when two DefaultCheckstyleExecutors try to use one licence manager: one calls addSearchPath on FileResourceLoader while the other one iterating over paths in getResource on the same FileResourceLoader .

      MCHECKSTYLE-238 and MCHECKSTYLE-230 are exactly about this situation. Right now the plugin for some reason is marked as thread safe although it definetly produces exceptions in parallel multimodule builds.

      DefaultCheckstyleRssGenerator is a point of attention because it is also singleton instantiated.

      Attachments

        1. MCHECKSTYLE-244.patch
          2 kB
          Konstantin Pokrovsky

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              kpokrovsky Konstantin Pokrovsky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: