Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1DA31851C for ; Thu, 17 Dec 2015 19:09:34 +0000 (UTC) Received: (qmail 34164 invoked by uid 500); 17 Dec 2015 19:09:33 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 34092 invoked by uid 500); 17 Dec 2015 19:09:33 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 34080 invoked by uid 99); 17 Dec 2015 19:09:33 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2015 19:09:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CACAEC07DB for ; Thu, 17 Dec 2015 19:09:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.881 X-Spam-Level: ** X-Spam-Status: No, score=2.881 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1xffnHwCMjO4 for ; Thu, 17 Dec 2015 19:09:25 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 42E4B42A70 for ; Thu, 17 Dec 2015 19:09:25 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id l126so36911902wml.1 for ; Thu, 17 Dec 2015 11:09:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=57i3p9LUkNQSs7D3S7Z7XDTrevk1+gVK7yFnu9xzSc0=; b=rGPvHmbhjJTy3jURtKt47UHQXqE/dT/cCuqcDaJSgf0gKbU9xa9cCEQ804Sn4Qt+m2 EWLeg476hczNZcV0mPHZCBSwXAZov+QGKc2rFVCHvMMJQunUZ0aqFLvdQDxlDyslEIYp x3/a1e/vC6IVLbh1wiP56raZDC4HG8Bi9HNj3bHhgyxrRV4G5sv7gB+ES8KZc1dErMsm ZEisUJXSrmRzgKOg5Pg2gThzkB7eK7Y9uRMW0VgCgfZCd8UhyaCtcnmyY9hPNorHuQs6 JeqRoT6xuqvZpFzHkt2iFt3WnW4H6LkvGBA7lRc4gTCYPEPk8+KYuny4Z1h7CPWRqe7d pb3w== MIME-Version: 1.0 X-Received: by 10.194.142.203 with SMTP id ry11mr57807023wjb.132.1450379364416; Thu, 17 Dec 2015 11:09:24 -0800 (PST) Received: by 10.28.90.85 with HTTP; Thu, 17 Dec 2015 11:09:24 -0800 (PST) In-Reply-To: <567301EC.9000701@gmx.de> References: <567301EC.9000701@gmx.de> Date: Thu, 17 Dec 2015 11:09:24 -0800 Message-ID: Subject: Re: Hijack mvn clean:clean to do file cleanup? From: Ben Podgursky To: Maven Users List , info@soebes.de Content-Type: multipart/alternative; boundary=089e0122857cce537205271cc209 --089e0122857cce537205271cc209 Content-Type: text/plain; charset=UTF-8 So actually I'm just terrible at reading documentation there's a excludeDefaultDirectories parameter which does exactly what I want. So, disregard all. On Thu, Dec 17, 2015 at 10:41 AM, Karl Heinz Marbaise wrote: > 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: > > > > > > org.apache.maven.plugins > maven-clean-plugin > > > default-cli > > ... > > > > second-cli > > ... > > > > > > > > > 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 >> >> 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 >> project.build.directory, 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: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --089e0122857cce537205271cc209--