In a multi-module maven project, is there a variable that points to the root project folder?
${project.basedir} points to the current project\'s d
Use directory-maven-plugin with directory-of goal.
Unlike other suggestions:
${session.executionRootDirectory}The plugin lets you set a property of your choice to the absolute-path of any of the project's modules. In my case I set it to the root module... In my project root pom:
org.commonjava.maven.plugins
directory-maven-plugin
0.1
directories
directory-of
initialize
myproject.basedir
com.my.domain
my-root-artifact
From then on, ${myproject.basedir} in any sub-module pom always has the path of the project root module. And of course, you can set the property to any module, not just the root...