With Maven2, how would I specify a custom directory to which a dependency should be copied?
Posted
by Benny
on Stack Overflow
See other posts from Stack Overflow
or by Benny
Published on 2010-05-10T14:22:09Z
Indexed on
2010/05/10
14:24 UTC
Read the original article
Hit count: 249
maven-2
Basically, I have a multi-module project consisting of 5 different modules. One of the modules is kind of the parent module to the other 4, meaning the other 4 need to be built before the 5th, so you could say that each of the 4 modules is a dependency of the 5th. Thus, I've made dependency entries for each of the modules in the 5th module's pom.xml.
However, when I build the project, I don't want those 4 dependencies copied to the "lib" directory of the 5th module. I'd like to specify the directory into which each of them should be placed explicitly.
Is there any way to do this with Maven2?
Thanks for your help,
B.J.
© Stack Overflow or respective owner