Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 20808 invoked from network); 13 Sep 2006 11:30:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 11:30:57 -0000 Received: (qmail 77920 invoked by uid 500); 13 Sep 2006 11:30:54 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 77835 invoked by uid 500); 13 Sep 2006 11:30:53 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 77824 invoked by uid 99); 13 Sep 2006 11:30:53 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 04:30:53 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=ammulder@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=ammulder@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.231 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([66.249.82.231:17640] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id FB/D1-09096-BFBE7054 for ; Wed, 13 Sep 2006 04:31:07 -0700 Received: by wx-out-0506.google.com with SMTP id i27so2364061wxd for ; Wed, 13 Sep 2006 04:30:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=GpGseueJybHgBnc4CFVJkgtKiBxgdS8VXJIfJUl/CO2oGE1Q9SGJjqQrtyE6XdX0hWp0C2sjFgBWH/wtEkLJhOTdhlrw68F+IDJeAmCR76ssBkia5Lbc12S4ygBk2HesFdaa4i2sjifQyKUk0QcaM6/kFu5xiaBOuHGEunEVMOk= Received: by 10.90.105.20 with SMTP id d20mr2549444agc; Wed, 13 Sep 2006 04:30:48 -0700 (PDT) Received: by 10.90.70.18 with HTTP; Wed, 13 Sep 2006 04:30:47 -0700 (PDT) Message-ID: <74e15baa0609130430k2c0783f3i6a869de9e87fc943@mail.gmail.com> Date: Wed, 13 Sep 2006 07:30:47 -0400 From: "Aaron Mulder" Sender: ammulder@gmail.com To: dev@geronimo.apache.org Subject: Re: How to get predictable moduleId when using DeploymentManager.distribute() In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 40bbe65ed6cf009b X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N First, if you specify a module ID in your plan, that will be used (or as much as you provide with defaults for the rest). And you can pack the plan in the module if you don't want to track it separately. Second, you can undeploy using only the artifact ID (so in your example, you could "undeploy test-ear-j2ee_1.4-1.2-SNAPSHOT") so long as there aren't conflicts. The default artifact ID is the JAR name minus the extension. Thanks, Aaron On 9/13/06, Jason Dillon wrote: > Anyone know how to get predictable moduleIds when using > DeploymentManager.distribute()? > > I'd like to figure out how to get the moduleIds to be the same as the > artifactId for the archive that is deployed, so that we can undeploy > it after tests have been run. > > How can I do this? Do I need to specify a plan for the archive to > tie it to a specific moduleId? > > I have been playing with test-ear-j2ee_1.4.ear, and it keeps > generating stuff like 'default/test-ear-j2ee_1.4-1.2-SNAPSHOT/ > 1158129807807/car' which is kinda hard to undeploy after that state > has been lost. > > If I do need to specify a plan, can I tuck that into the .ear so that > Maven does not need to worry about 2 artifacts for one deployment? > > --jason >