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

ProjectBuilder.build(list_of_projects,...) does not contain MavenProject in exception report

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.4, 3.6.0
    • Fix Version/s: 3.6.1
    • Component/s: core
    • Labels:
      None

      Description

      To save a lot of CPU and RAM in Eclipse m2e, we're trying to use ProjectBuilder.build(List<File> projects ...) instead of sequencing multiple Projectbuilder.build(File singleProject...). This has a big positive impact on m2e.

      However, we noticed that when the operation is failing in some case because pom is incomplete (which is a pretty usual state in the IDE), the multi-projects method does not return the MavenProject in the ProjectBuildingException.getResults(), while the single-project method does.

      Adding MavenProject for the multi-project ProjectBuilder.build(...) would allow m2e to use this method and save ~75% RAM and CPU in many operations.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              hboutemy Herve Boutemy
              Reporter:
              mickael.istria Mickael Istria

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment