[ 
https://jira.codehaus.org/browse/MAPPASM-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291362#comment-291362
 ] 

Karl Heinz Marbaise edited comment on MAPPASM-144 at 2/10/12 1:55 PM:
----------------------------------------------------------------------

First thanks for checking...can you try to configure the appassembler-plugin in 
the following way if it fits your needs?

{code}
<configuration>
    <extraJvmArguments>IGNORED</extraJvmArguments>
    <programs>
        <program>
            <name>startClient</name>
            <mainClass>x.y.Z</mainClass>
            <jvmSettings>
                <initialMemorySize>64m</initialMemorySize>
                <maxMemorySize>256m</maxMemorySize>
                <systemProperties>
                    
<systemProperty>log4j.configuration=log4j.xml</systemProperty>
                </systemProperties>
            </jvmSettings>
        </program>
    </programs>
</configuration>
{code}

                
      was (Author: khmarbaise):
    First thanks for checking...can you try to configure the 
appassembler-plugin in the following way if it fits your needs?

{code}
<configuration>
    <extraJvmArguments>IGNORED</extraJvmArguments>
    <programs>
        <program>
            <name>startClient</name>
            <mainClass>x.y.Z</mainClass>
            <jvmSettings>
                <initialMemorySize>20m</initialMemorySize>
                <maxMemorySize>256m</maxMemorySize>
                <systemProperties>
                    
<systemProperty>log4j.configuration=log4j.xml</systemProperty>
                </systemProperties>
            </jvmSettings>
        </program>
    </programs>
</configuration>
{code}

                  
> jvmSettings per program hide global extraJvmArguments
> -----------------------------------------------------
>
>                 Key: MAPPASM-144
>                 URL: https://jira.codehaus.org/browse/MAPPASM-144
>             Project: Mojo AppAssembler Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> Java version: 1.7.0_01
> Java home: C:\programs\jse-1.7.0_01\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
> appassembler-maven-plugin 1.2 (from staging)
>            Reporter: Lukasz Szelag
>
> I appears that system properties defined under <jvmSettings> (per program), 
> hide (instead of appending to) global JVM arguments defined via 
> <extraJvmArguments> tag. In addition, passing extra arguments via 
> <extraArguments> (per program), and in combination with <jvmSettings>, makes 
> the former to be included in quotes, breaking the generated script
> {code:title=pom.xml}
> <configuration>
>     <extraJvmArguments>IGNORED</extraJvmArguments>
>     <programs>
>         <program>
>             <name>startClient</name>
>             <mainClass>x.y.Z</mainClass>
>             <jvmSettings>
>                 <systemProperties>
>                     
> <systemProperty>log4j.configuration=log4j.xml</systemProperty>
>                 </systemProperties>
>                <extraArguments>
>                    <extraArgument>-Xms64m -Xmx256m</extraArgument>
>                </extraArguments>
>             </jvmSettings>
>         </program>
>     </programs>
> </configuration>
> {code}
> {code:title=Generated script}
> EXTRA_JVM_ARGUMENTS=""-Xms64m -Xmx256m" -Dlog4j.configuration=log4j.xml"
> {code}
> {code:title=Expected behavior}
> EXTRA_JVM_ARGUMENTS="IGNORED -Xms64m -Xmx256m -Dlog4j.configuration=log4j.xml"
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to