Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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.
Attachments
Issue Links
- is duplicated by
-
MNG-1958 we need a var that always points to the root directory in multi module builds
- Closed
- is related to
-
MSHARED-1015 Using Embedded3xLauncher fails with "-Dmaven.multiModuleProjectDirectory system property is not set"
- Closed
-
MNG-6303 Interpolate user supplied properties and command line arguments
- Closed
-
MNG-5889 .mvn directory should be picked when using --file
- Closed
-
MNG-6267 Support resolving "~" in values given to CLI Option "-s"
- Closed
-
MNG-6589 Document property maven.multiModuleProjectDirectory
- Closed
-
MNG-5786 Variable maven.multiModuleProjectDirectory may be set incorrectly
- Closed