Hi all,

I use the maven-resources-plugin to copy some configuration files to the
same directory as the resulting jar goes to (which is different from the
standard target directory - I changed that using the maven-jar-plugin's
outputDirectory configuration selection). It works fine, there's just one
issue. If a file with the same name (but different content) already exists
in the directory, maven won't copy the new version of the file (and thus
rewrite the old one).

I don't want to delete the whole directory before the copying phase, because
there might be other files, which I don't won't to lose.

I have searched google and it seems to me that it is not possible to
configure the plugin the way I need. Please prove me wrong or advise me what
is the best way to get the behaviour I need.

I'm using maven version 2.2.1.

Please excuse my improper english.

Thanks a lot!
Dusan

Reply via email to