Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 58795 invoked from network); 5 Oct 2010 20:10:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 20:10:49 -0000 Received: (qmail 66065 invoked by uid 500); 5 Oct 2010 20:10:47 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 65999 invoked by uid 500); 5 Oct 2010 20:10:46 -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 65990 invoked by uid 99); 5 Oct 2010 20:10:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:10:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anders.g.hammar@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:10:38 +0000 Received: by qyk1 with SMTP id 1so341181qyk.9 for ; Tue, 05 Oct 2010 13:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=49tEuccqWJK/Z1zJl7eGBkD890U3nb8w1c7D7xTDQC8=; b=MQF79dbqvfK8zIEvUrxSUsyp0ZA/ojRy22MsA9IjoGG8jz43mzJMvWSHQ4HClWFuJX aB5/IvzhIO1LDxaE+ZXIGZE7OWl2D7sVPFpkaAbx2rebhy/21SxtHpmMWmdFQ53tOLvb xbhO//qspkbA709oDAXYazkzo4XClFqQHOndI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=AW/RBIzBtlDuN7zKxXQrEzvZbih+6yBVlf+ozQgpEJ+ZUGosHTSDx2smfVmDegoIel HKec+SLnS3fqWLyAKCanXLRKL1Wy1pbgNfXs40HNhghFfdUX1U5SPXvzJNYPo0UqSAVs V2BX3oQv+OPK/znhPUjJ/EtKMnLPyRXPiDSGk= MIME-Version: 1.0 Received: by 10.224.37.19 with SMTP id v19mr8763236qad.15.1286309417516; Tue, 05 Oct 2010 13:10:17 -0700 (PDT) Sender: anders.g.hammar@gmail.com Received: by 10.229.81.70 with HTTP; Tue, 5 Oct 2010 13:10:17 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Oct 2010 22:10:17 +0200 X-Google-Sender-Auth: JymOPb4YaJMEoHWBYswYoek9rwU Message-ID: Subject: Re: Continuous Build always building against the latest SNAPSHOT version From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=001517503cc8e6ff400491e43fac X-Virus-Checked: Checked by ClamAV on apache.org --001517503cc8e6ff400491e43fac Content-Type: text/plain; charset=ISO-8859-1 I don't see that you're doing anything wrong. You just need to bump the dep version in project-2. Or, I guess, you could use version ranges but I'm kind of allergic to them so I'd suggest stay off that path. /Anders On Tue, Oct 5, 2010 at 22:05, Mike Lenner wrote: > Any help would be greatly appreciated - I'm trying to figure out how > to do this the maven way. > > I have a shared dependency called shared-util. My team frequently > makes changes to our deployable projects along with changes to the > shared-util. So, in my continuous build, I'd like each of our > projects always building against the latest shared-util. > > Seems like a perfect situation for a SNAPSHOT dependency. So, > project-1 and project-2 each depend on 1.0-SNAPSHOT of shared-util. > Continuous Build deploys the current 1.0-SNAPSHOT to our repo after > each code commit, and project-1 and project-2 build fine. > > But then we release project-1. We don't want to do so with SNAPSHOT > dependencies, so we release shared-util as well. The maven release > plugin updates shared-util to 1.1-SNAPSHOT after the release (as well > as project-1's dependency). > > But now project-2, still dependent on 1.0-SNAPSHOT, is no longer > building against the latest shared-util. Future commits to > shared-util will not be built against in our Continuous Build for > project-2 because project-2 is dependent on a "dead" snapshot. > > What am I missing / doing wrong here? Seems like snapshots were made > for this use case. > > Thanks, > Mike > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --001517503cc8e6ff400491e43fac--