What is maven.multiModuleProjectDirectory used for?

I've seen a lot of talk about setting the env parameter maven.multiModuleProjectDirectory , both in SO and on the Maven mailing lists, but it's hard for me to understand what this parameter is used for /.

I searched google, maven, docs, etc. sites, but cannot find a link that actually explains what this parameter is for, or how to use it.

Can someone explain this to the purpose and / or point me to the documentation? What version of maven was introduced?

+7
source share
1 answer

An environment variable was introduced in Maven 3.3.1, which is available from the mvn or mvn.cmd . The goal is to find the beginning of a multi-module structure, in .mvn you can find the location of .mvn .

This was introduced to make customization possible inside the project, and not outside.

Check out the Maven 3.3.1 release notes.

Update This variable is used only in the mvn script and is not documented or intended for public use (details of the internal implementation). Therefore, I highly recommend not using it. Otherwise, things may break in the future.

+8
source

All Articles