Finding the root directory of a multi module maven reactor project
问题 I want to use the maven-dependency-plugin to copy EAR-files from all sub-modules of my multi-module project to a directory that is relative to the root directory of the entire project. That is, my layout looks similar to this, names changed: to-deploy/ my-project/ ear-module-a/ ear-module-b/ more-modules-1/ ear-module-c/ ear-module-d/ more-modules-2/ ear-module-e/ ear-module-f/ ... And i want all the EAR-files to be copied from the target-directories of their respective modules to my-project/