[ 
http://jira.codehaus.org/browse/MDEP-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=212816#action_212816
 ] 

Ruediger Dreier commented on MDEP-225:
--------------------------------------

I observe the same behaviour, even with the current source version:

mvn clean install -> unpacks
mvn install -> no unpack (x already exists in destination)
mvn -U install -> unpacks
mvn install -> unpacks
mvn install -> unpacks
and continues unpacking each time.

It looks like the marker files do not get the current time stamp when they 
already exist and the artifact is updated (e.g. with mvn -U or by time).

I tried a little patch that sets the modified timestamp each time the 
dependency is unpacked. With this patch it now works for me.


> Dependency plugin seems to unpack archive even, if it is already unpacked
> -------------------------------------------------------------------------
>
>                 Key: MDEP-225
>                 URL: http://jira.codehaus.org/browse/MDEP-225
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack
>    Affects Versions: 2.1
>            Reporter: Jason Chaffee
>            Assignee: Brian Fox
>
> The plugin used to be smart about not unpacking archives if it found the 
> archive was already unpacked (maybe I was doing something different than..not 
> sure).  However, now it unpacks the archive every time, no matter what I try 
> to keep it from doing it, including using overwriteIfNewer.
> I would like to be able to run the build once to extract the archive, then 
> not have it extracted again, unless I clean the target directory because the 
> archive takes several minutes to unpack.
> Here are the steps.
> 1) configure unpack in pom
> 2) run mvn clean install --> expect unpacking
> 3) run mvn install --> do not expect unpacking as it is still unpaced from 
> step (2)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to