I am trying to figure out how to aggregate my maven dependencies in a multi-module project. For example, if I have:
root pom/project1
root pom/project2
and I run mvn dependency:copy-dependencies
, I end up with the dependencies in:
root pom/project1/target/dependency
root pom/project2/target/dependency
What I really want is that if I run the mvn command in the root pom folder, all of the dependencies to be copied to root pom/dependency
. Is there a maven property that gets me the output directory of the root pom? (similar to ${project.build.directory}
)? I realize that I can just copy all the dependency folders to the same place after the fact, but I was hoping for something a little cleaner.