You could use optionSets to add your customized properties.
1, add optionSets to your geronimo-maven-plugin configuration
<plugin>
<groupId>org.apache.geronimo.buildsupport</groupId>
<artifactId>geronimo-maven-plugin</artifactId>
<configuration>
<optionSets>
<optionSet>
<id>moreMemory</id>
<options>
<option>-XX:MaxPermSize=256m</option>
<option>-XX:+HeapDumpOnOutOfMemoryError</option>
<option>-enableassertions</option>
</options>
</optionSet>
<optionSet>
<id>ghome</id>
<options>
<option>-DgeronimoHome=/home/genspring/geronimo222-SNAPSHOT
</option>
<option>-DXXX=XXX
</option>
</options>
</optionSet>
</optionSets>
</configuration>
</plugin>
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 <[email protected]> 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!
> <plugin>
> <groupId>org.apache.geronimo.plugins</groupId>
> <artifactId>geronimo-maven-plugin</artifactId>
>
> <configuration>
> <geronimoHome>c:\server1\</geroninomHome>
> </configuration>
> </plugin>
>
>
> --
> viola
>
--
Shawn