maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <>
Subject Re: Hijack mvn clean:clean to do file cleanup?
Date Thu, 17 Dec 2015 18:41:48 GMT
Hi Ben,

you can define an execution with the id `default-cli` where you can 
configure the special filesSet for your purpose ...which you can execute 
from command line only via clean:clean...

If you are in Maven 3.3.X+ you define several of them like this:


now you can use:

mvn clean:clean@default-cli
mvn clean:clean@second-cli

Kind regards
Karl Heinz Marbaise

On 12/17/15 7:36 PM, Ben Podgursky wrote:
> We have a problem where our build servers fill up with jar artifacts
> post-build (we have a lot of java builds).
> I was hoping to attach an execution of clean:clean with a custom <filesets>
> after the deploy phase.  However, I don't want to sweep the whole target/
> directory, just the filesets I define, since we want to hold onto test
> results
> Is there any way to disable the automatic detection of
>, etc, and only delete custom filesets?  Or is there
> another plugin/goal which would let me do this?
> I can write a mojo if I need to, but was hoping something was already out
> there.
> Thanks,
> Ben

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message