Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 41135 invoked from network); 14 Jul 2010 04:54:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jul 2010 04:54:55 -0000 Received: (qmail 57481 invoked by uid 500); 14 Jul 2010 04:54:55 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 57104 invoked by uid 500); 14 Jul 2010 04:54:52 -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 57097 invoked by uid 99); 14 Jul 2010 04:54:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jul 2010 04:54:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of genspring@gmail.com designates 209.85.160.54 as permitted sender) Received: from [209.85.160.54] (HELO mail-pw0-f54.google.com) (209.85.160.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jul 2010 04:54:43 +0000 Received: by pwj9 with SMTP id 9so2845009pwj.13 for ; Tue, 13 Jul 2010 21:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=inn+2/UEdXpDLCgZ5Z7VoV5w1rDjPU+GnIfQS5GdR7k=; b=u4PnEzmA8jqTxQxIFYEIQKn7ySc/wySNodm6wJrUGo3W3/HQLu9B78hOmWpMl0lCCf rXizC96jx77bMO0RoBnxsxYneJzz73DZ+EGxKEa5Zsq+EYhoAu1yEU1t5VMue/Ir0zvB X0UPAKwjhQm4JABTLLRHZodhGlfmt06HgcOXM= 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=u/GOt0NOMO8uwZapF8V73w/9hMDS6qaQcoqNuQGrGVp2DvN8wjW5XVRrUzxOVtvJBH GqJI9XpmLoRNDHqcbtnRtPQyOD8ZBn20l6pUEPv2NdFCpOGnPgR8zeL0mewFQCRB628e p+yD7h35PEKAfpjovKO5/KOwSEIfInob7jxuM= MIME-Version: 1.0 Received: by 10.142.199.20 with SMTP id w20mr19564946wff.27.1279083261275; Tue, 13 Jul 2010 21:54:21 -0700 (PDT) Received: by 10.142.233.16 with HTTP; Tue, 13 Jul 2010 21:54:21 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Jul 2010 12:54:21 +0800 Message-ID: Subject: Re: Question about geronimoHome configuration in geronimo-maven-plugin From: Shawn Jiang To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=000e0cd258826d3138048b51c7a4 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd258826d3138048b51c7a4 Content-Type: text/plain; charset=ISO-8859-1 You could use optionSets to add your customized properties. 1, add optionSets to your geronimo-maven-plugin configuration org.apache.geronimo.buildsupport geronimo-maven-plugin moreMemory ghome 2, add -Doptions=xxx when do the mvn build to active the option set. mvn clean install -Doptions=ghome On Wed, Jul 14, 2010 at 11:20 AM, viola lu wrote: > From geronimo-maven-plugin site doc, it described that if i want to run a > customized geornimo server, i can run command: > mvn geronimo:start-server -DgeronimoHome=[$dir_geronimo-server] > > but i want to define geronimoHome in pom.xml not in command, how to > configure geronimo-maven-plugin? > The way below is possible?thanks in advance! > > org.apache.geronimo.plugins > geronimo-maven-plugin > > > c:\server1\ > > > > > -- > viola > -- Shawn --000e0cd258826d3138048b51c7a4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
You could use optionSets to add your customized properties.
=

1, add optionSets to your geronimo-maven-plug= in configuration

=A0<plugin>
=A0= =A0 =A0 =A0 =A0<groupId>org.apache.geronimo.buildsupport</groupId&= gt;
=A0=A0 =A0 =A0 =A0<artifactId>geronimo-maven-plugin</artifact= Id>
=A0=A0 =A0 =A0 =A0<configuration>
=A0=A0 = =A0 =A0 =A0 =A0 =A0 <optionSets>
=A0=A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0<optionSet>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0<id>moreMemory</id>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<options>
= =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<option>-XX:MaxPerm= Size=3D256m</option>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0<option>-XX:+HeapDumpOnOutOfMemoryError</option>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<option>-enabl= eassertions</option>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0</options>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</optio= nSet>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<optionSet>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<id>ghome</id>
<= div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<options>
=A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<option>-DgeronimoHome= =3D/home/genspring/geronimo222-SNAPSHOT
=A0=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0</option>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<option>-DXXX= =3DXXX
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</opt= ion>
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</options>= ;
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</optionSet>
= =A0=A0 =A0 =A0 =A0 =A0 =A0</optionSets>
=A0=A0 =A0 =A0 =A0</configuration>
=A0=A0 =A0</plug= in>
=A0=A0 =A0
=A02, add -Doptions=3Dxxx when do the= mvn build to active the option set.
=A0=A0=A0
=A0=A0mv= n clean install =A0-Doptions=3Dghome

On Wed, Jul 14, 2010 at 11:20 AM, viola lu <= span dir=3D"ltr"><viola.lu@gmail.com> wrote:
>From geronimo-maven-plugin site doc, it described that if i want to run a c= ustomized geornimo server, i can run command:
=A0mvn geronimo:start-serv= er -DgeronimoHome=3D[$dir_geronimo-server]

but i want to define gero= nimoHome in pom.xml not in command, how to configure geronimo-maven-plugin?=
The way below is possible?thanks in advance!
<plugin>
=A0=A0=A0= <groupId>org.apache.geronimo.plugins</groupId>
=A0=A0=A0 &l= t;artifactId>geronimo-maven-plugin</artifactId>
=A0=A0=A0
= =A0=A0=A0 <configuration>
=A0=A0=A0=A0=A0=A0=A0 <geronimoHome>c:\server1\</geroninomHome>=
=A0=A0=A0 </configuration>
</plugin>


--
viola



--
Shawn
--000e0cd258826d3138048b51c7a4--