I guess the dependency plugin can't really tell, as the filtering takes a
value outside of the source file which could have changed since the last
time the file was filtered.
The price you pay for filtering I guess?

/Anders

On Wed, Dec 8, 2010 at 18:02, Marshall Schor <m...@schor.com> wrote:

> The Maven resources plugin has a goal "copy-resources" which has a
> configuration
> parameter "overwrite".  The default is "false" - meaning not to overwrite a
> target file if not needed (if the target has  a later date than the
> source).
>
> This setting is ignored, however, if the file is being filtered.
>
> I'm using this to inject version info from the POM into a Java source file.
>  So
> everytime this module is built, it always updates this file even though
> nothing
> (usually) has changed.
>
> Is there a better Maven way to do this?
>
> -Marshall
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to