Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5965

Parallel build multiplies work if multiple goals are given

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.9
    • 3.6.1
    • Bootstrap & Build
    • None
    • Windows 7 64bit

    Description

      When I run a parallel build which invokes multiple goals Maven multiplies the work e.g. when I run

      install sonar:sonar
      Every phase is executed once as expected. However when I run

      install sonar:sonar -T 4
      Every phase is executed twice.

      The problem can be reproduced with a single simple Java project (of course parallel builds are useless with a single module). Debugging showed that every Mojo is really called twice per project.
      Find attached a simple project and two build outputs, where you can see that the parallel build is doing everything twice (you can ignore that Sonar fails in the end, due to no server is up).

      Attachments

        Issue Links

        Activity

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

          People

            michael-o Michael Osipov
            matthias.schmalz@sap.com Matthias Schmalz
            Votes:
            3 Vote for this issue
            Watchers:
            8 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                Slack

                  Issue deployment