Howdy, Niels is right, and do use Maven 3.9 and do have .mvn directory (even with a placeholder, or with mvn wrapper) as that is simplest and cleanest, plus, maven4 will want that anyway.
T On Sun, Dec 28, 2025 at 11:16 PM Nils Breunese <[email protected]> wrote: > > Justin Lee <[email protected]> wrote: > > > I'm using maven 4.0.0-rc-5 and I'm trying to reference the very root of my > > multimodule project. I though maven.multiModuleProjectDirectory was that > > answer but it always resolves to the current module's path. in > > <pluginMgmt> in the root, I'm trying to reference config files in a folder > > off the root of the overall project without have to hand code relative > > paths in every module. How is one supposed to achieve this? Is it even > > possible? > > You should be able to use ${project.rootDirectory} if you have a .mvn > directory under your multimodule project’s root, or alternatively set the > root attribute in your parent POM to true (requires POM model 4.1.0, so can > only be used with Maven 4). See this section in the ‘Migrate to Maven 4’ > documentation: > https://maven.apache.org/guides/mini/guide-migration-to-mvn4.html#Define_project.27s_root_directory > > Nils. > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
