Finding the root directory of a multi module maven reactor project

前端 未结 13 1582
庸人自扰
庸人自扰 2020-12-02 11:11

I want to use the maven-dependency-plugin to copy artifacts from all sub-modules of my multi-module project to a directory that is relative to the root directory of the enti

13条回答
  •  猫巷女王i
    2020-12-02 11:52

    Since Maven 3.3.1, you can use ${maven.multiModuleProjectDirectory} for this purpose. (thanks to https://stackoverflow.com/a/48879554/302789)

    edit: this seems to only work properly when you have a .mvn folder at the root of your project.

提交回复
热议问题