You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:45 UTC

[jira] [Closed] (MDEP-140) Make unpack mojos check timestamp of archive entry when overIfNewer=true

     [ https://issues.apache.org/jira/browse/MDEP-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MDEP-140.
-------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

> Make unpack mojos check timestamp of archive entry when overIfNewer=true
> ------------------------------------------------------------------------
>
>                 Key: MDEP-140
>                 URL: https://issues.apache.org/jira/browse/MDEP-140
>             Project: Maven Dependency Plugin
>          Issue Type: Improvement
>          Components: unpack, unpack-dependencies
>    Affects Versions: 2.0
>            Reporter: Benjamin Bentmann
>
> I intended to use the {{unpack}} mojo with the following configuration
> {code:xml}
> <overWriteReleases>false</overWriteReleases>
> <overWriteSnapshots>false</overWriteSnapshots>
> <overWriteIfNewer>true</overWriteIfNewer>
> {code}
> to copy files from a JAR somewhere into the src/ hierarchy of another project, if and only if
> - the target file does not exist yet or
> - the target file is older than the file from the JAR
> Unlike the related Ant task UnZip, the mojo does not check the timestamps of the archive entries against the timestamps of the target files. In my case, this leads to the unwanted effect that target files are always overwritten, even if they are newer.
> The Plexus {{UnArchiver}} has a property {{overwrite}} that should be used by the plugin when unpacking files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)