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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.4, 3.6.0
    • 3.6.1
    • Core
    • 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

              hboutemy Herve Boutemy
              mickael.istria Mickael Istria
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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