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

project-specific default jvm options and command line parameters

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.1
    • Component/s: None
    • Labels:
      None

      Description

      Some of the projects builds I work on require special jvm options, like minimal -Xmx value, and specific command line parameters, like --builder. Currently, I have to manually configure these every time run the build, which is rather annoying and error prone. This manual configuration also makes it harder for new or external developers to build the projects and many simply give up trying after "mvn package" does not work from the first try.

      This enhancement request proposes to introduce two new optional configuration files .mvn/jvm.config and .mvn/maven.config, located at the base directory of project source tree. If present, these files will provide default jvm and maven options. Because these files are part of the project source tree, they will be present in all project checkouts and will be automatically used every time the project is build.

        Issue Links

          Activity

          Show
          igorf Igor Fedorenko added a comment - https://git-wip-us.apache.org/repos/asf?p=maven.git;a=commit;h=8ed9a1caa8890773b45c6c408a4e40acf4f4b0fd
          Hide
          mkleint Milos Kleint added a comment -

          how will it work for multi module projects where just a submodule is being build? will the options be only picked up on the root project build?

          Show
          mkleint Milos Kleint added a comment - how will it work for multi module projects where just a submodule is being build? will the options be only picked up on the root project build?
          Hide
          igorf Igor Fedorenko added a comment -

          Correct. Options apply for entire codebase. The same options are used regardless if the build is started at the root of the codebase or from one of the submodules.

          Show
          igorf Igor Fedorenko added a comment - Correct. Options apply for entire codebase. The same options are used regardless if the build is started at the root of the codebase or from one of the submodules.
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in maven-3.x #1081 (See https://builds.apache.org/job/maven-3.x/1081/)
          MNG-5767 added documentation for project-specific jvm options and (hboutemy: rev cb356ed478c5c42489b394720990a1696cb27b52)

          • maven-embedder/src/site/apt/index.apt.vm
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in maven-3.x #1081 (See https://builds.apache.org/job/maven-3.x/1081/ ) MNG-5767 added documentation for project-specific jvm options and (hboutemy: rev cb356ed478c5c42489b394720990a1696cb27b52) maven-embedder/src/site/apt/index.apt.vm

            People

            • Assignee:
              igorfie igorfie
              Reporter:
              igorf Igor Fedorenko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development