Unfortunately the maven-dependency-plugin
unpack
goal has not a postprocess
optional parameter letting you, for example, chmod-ing or moving files. So I don't think exists an elegant way to do what you want only using the maven-dependency-plugin
.
In addition to the maven-dependency-plugin
you might use the maven-antrun-plugin
, binding it to a subsequent phase which the maven-dependency-plugin
is binded to, to copy/move/delete your files and directories.