Finding the root directory of a multi module maven reactor project

前端 未结 13 1552
庸人自扰
庸人自扰 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 11:45

    I encountered similar problem as i needed to copy files between projects. What Maven does is logical because it will keep the pom.xml installed in repository away from hard coded value.

    My solution was to put copied dir in a Maven artifact, then employ Ant to extract/copy

提交回复
热议问题