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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment