Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 44174 invoked from network); 15 Feb 2010 18:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2010 18:58:30 -0000 Received: (qmail 39576 invoked by uid 500); 15 Feb 2010 07:51:50 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 39458 invoked by uid 500); 15 Feb 2010 07:51:48 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 39448 invoked by uid 99); 15 Feb 2010 07:51:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 07:51:48 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kristian.rosenvold@gmail.com designates 209.85.219.225 as permitted sender) Received: from [209.85.219.225] (HELO mail-ew0-f225.google.com) (209.85.219.225) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 07:51:40 +0000 Received: by ewy25 with SMTP id 25so439353ewy.23 for ; Sun, 14 Feb 2010 23:51:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=8sBXlFKZ6s4Lm7KqSHwZTUnPDW5rMx6cnjK6N0oo7to=; b=fJt3NTQXR1ZM81v5P26WPY4RCi6HONgdtJPhplZ3ywVLFBPUoHPmKrpcg2msxBSafj h63FjivOo8AX2RwbJ7QAkGS+5b5SATb3u6zU5MXhRUfXyDHmW/1mXizlL72IkYcicElN nXCuj/g5vC9RTIj5UYZk8z3J6+hWvEnFpDUjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RtoU6qV6VEm7z/RVthiitDL5daVwmF9qv0BhksMioNRWAAlOZRZfnusbYN59zXCWeE LcaHC2LBM9EHdWVXFodVbZX0atbSXhUiSzg70+4eI3uakSUpU26vBqH7bbs+Vmrawcia MASipQHU++fFAglxSE+Vo7vI042y6zmjU5ctg= MIME-Version: 1.0 Received: by 10.213.68.13 with SMTP id t13mr3046580ebi.62.1266220280066; Sun, 14 Feb 2010 23:51:20 -0800 (PST) In-Reply-To: <4B78D838.7090205@ifedorenko.com> References: <0A0F9CC7-4756-4FAC-9FCF-EDBEC6490A40@apache.org> <1265483784.11375.23.camel@office> <0C52D4B3-0389-4114-A642-3DB0FC509C0C@apache.org> <42a010a61002080118x382e3999hc22571212ef80947@mail.gmail.com> <88c1b41002080158g7c6eb3b0lbceee7ed944ffd9c@mail.gmail.com> <42a010a61002080320k31c4b8f5pafaf4b88f1122c87@mail.gmail.com> <4B6FF437.8090901@udo.edu> <1266093271.1550.30.camel@office> <4B78D838.7090205@ifedorenko.com> Date: Mon, 15 Feb 2010 08:51:20 +0100 Message-ID: <42a010a61002142351h5d5cd051q8624473d50aae4ee@mail.gmail.com> Subject: Re: Artifact instances in a reactor build From: Kristian Rosenvold To: Maven Developers List Content-Type: multipart/alternative; boundary=00c09f76b41e00361b047f9ee24c X-Virus-Checked: Checked by ClamAV on apache.org --00c09f76b41e00361b047f9ee24c Content-Type: text/plain; charset=ISO-8859-1 On Mon, Feb 15, 2010 at 6:14 AM, Igor Fedorenko wrote: > I am not 100% sure, but I think this may break MavenMetadataCache, which > caches Artifact instances and assumes they do not change. In m2e, for > example, we do not flash the cache before each build, only when project > pom.xml changes. So if one of mojos changes cached Artifact instance, > next build may misbehave. > Nice tip; I checked the code and there seem to be no dependencies on the mutable parts of DefaultArtifact. If it were up to me I'd just make most of DefaultArtifact final and immutable... It seems like Brett is right; the "file/resolved" bit in DefaultArtifact probably shouldn't have been there, and when I think about it it's probably just used within a single module build in linear maven. It seems to me like the artifacts are re-resolved "properly" when proceeding to the next module; this works well with clear module boundaries ;) ATM I solved this problem by re-resolving reactor artifacts when a module transitions into packaging, but I'll see if I can improve that once I find out why surefire won't fire consistently ;) Kristian --00c09f76b41e00361b047f9ee24c--