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

Elliotte Rusty Harold closed MDEP-675.
--------------------------------------

> Add an option to clean the outputDirectory before unpack
> --------------------------------------------------------
>
>                 Key: MDEP-675
>                 URL: https://issues.apache.org/jira/browse/MDEP-675
>             Project: Maven Dependency Plugin
>          Issue Type: New Feature
>          Components: unpack
>    Affects Versions: 3.1.1
>            Reporter: Olivier Becker
>            Priority: Minor
>
> I have a project that needs to extract a very big maven zip artifact.
> I use the maven dependency plugin (unpack goal) with the marker to avoid the 
> extraction at each compilation.
> This very big artifact is currently in development, so I use its SNAPSHOT 
> version.
> Sometimes a new version of this SNAPSHOT is pushed to Nexus, so when I 
> compile my project (using mvn install), the maven dependency plugin unzips 
> the new SNAPSHOT version but the problem is that the outputDirectory contains 
> a mix between the old version and new version of the artifact.
> For example, the first version of the SNAPSHOT contains two files:
> Foo1.bin, Foo2.bin
> The second version of the SNAPSHOT contains two files:
> Foo1.bin, Bar1.bin
> The outputDirectory contains:
> Foo1.bin, Foo2.bin, Bar1.bin
> Whereas I would need to have only Foo1.bin and Bar1.bin.
> Because it's a very big file, it's not possible to always compile using "mvn 
> *clean* install" instead of "mvn install" because extraction takes too much 
> time. I need a way to process the extraction only when the big artifact has 
> been modified.
> That is why it would be nice to have an option to clean the outputDirectory 
> before the extraction.
> I have a pull request that I can submit if you agree to add this new feature.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to