Maven variable for reactor root

Solution 1:

is there a variable that always points to the root directory (the one from which the maven command was executed)

user.dir (the working directory) should be that directory.

Solution 2:

In the latest maven, you can use ${maven.multiModuleProjectDirectory}.