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 EF9BD11737 for ; Mon, 13 May 2013 08:22:22 +0000 (UTC) Received: (qmail 48800 invoked by uid 500); 13 May 2013 08:22:21 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 48526 invoked by uid 500); 13 May 2013 08:22:17 -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 48497 invoked by uid 99); 13 May 2013 08:22:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 May 2013 08:22:16 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prvs=838b3a823=Ben.Caradoc-Davies@csiro.au designates 150.229.7.42 as permitted sender) Received: from [150.229.7.42] (HELO act-MTAout5.csiro.au) (150.229.7.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 May 2013 08:22:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=csiro.au; i=@csiro.au; q=dns/txt; s=email; t=1368433325; x=1399969325; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; bh=3hm7bla/DzFwpqVO3w606PgyCX+d6pN/o9w3Tsr9aJc=; b=CAWpLP4Uzc0lOvpK+ntFry4HItQKV6OEAK4jpMDEM3MdaNnsBdnD4PzO vSG8NCrv0X1icBPARZFBDuhaWyeUgWaAVH8ssYU63FHaO0f/u8JJhXxU5 tWghwSBumvLOYSK; X-SBRS: None X-IronPort-AV: E=Sophos;i="4.87,660,1363093200"; d="scan'208";a="78136991" Received: from exhtca03-cdc.nexus.csiro.au ([IPv6:2405:b000:601:13::247:23]) by act-ironport-int.csiro.au with ESMTP/TLS/AES128-SHA; 13 May 2013 18:21:42 +1000 Received: from EXHTCA05-CDC.nexus.csiro.au (2405:b000:601:13::247:25) by exhtca03-cdc.nexus.csiro.au (2405:b000:601:13::247:23) with Microsoft SMTP Server (TLS) id 14.2.318.4; Mon, 13 May 2013 18:21:42 +1000 Received: from [130.116.145.132] (130.116.145.132) by exhtca05-cdc.nexus.csiro.au (152.83.247.25) with Microsoft SMTP Server (TLS) id 14.2.318.4; Mon, 13 May 2013 18:21:42 +1000 Message-ID: <5190A295.7030103@csiro.au> Date: Mon, 13 May 2013 16:21:41 +0800 From: Ben Caradoc-Davies User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Maven Users List CC: Stephen Connolly Subject: Re: avoiding to write into user home References: <51909A9F.40406@filez.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [130.116.145.132] X-Virus-Checked: Checked by ClamAV on apache.org +1. I have done this. Caching cannot be disabled: it is what maven does. But you can control where the cache is stored. The final step is to invoke maven with: mvn -s /path/to/alternate/settings.xml With this command-line option and settings defined as noted by Stephen below, nothing will be written to the user home directory. Kind regards, Ben. On 13/05/13 16:12, Stephen Connolly wrote: > The local repository cache is by default stored in ~/.m2/repository > > In the users or global settings this default can be changed to some other > location. (See in > http://maven.apache.org/settings.html#Simple_Values) > > Keep in mind that the cache is not concurrent safe, and is definitely not > designed to be shared by multiple users as it can and does get used to > store a user's temporary build artifacts if they do "mvn install" > > Our recommendation is that each user has their own cache, and if there is a > strong likelyhood of a user running multiple concurrent builds of the same > or similar sets of artifacts then those builds should be using their own > cache... e.g. a CI server should have a separate cache for each build job. > > > On 13 May 2013 08:47, Radim Kolar wrote: > >> i got this report http://www.freebsd.org/cgi/** >> query-pr.cgi?pr=ports/178529user complaining about maven writing to home directory during compile. >> >> Is there any command line argument to prevent this (to turn off caching). >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org >> For additional commands, e-mail: users-help@maven.apache.org >> >> > -- Ben Caradoc-Davies Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org