[ 
https://issues.apache.org/jira/browse/TOMEE-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yann Blazart updated TOMEE-1626:
--------------------------------
    Attachment: patch-tome-exec.diff

I made this patch to correct it.

If we use the en vars in server.xml, we have to precise it on the config of the 
plugin, to let it compatible with the RunMojo : 

                    <systemVariables>
                        <http.port>18080</http.port>
                    </systemVariables>

More of that, I change the order of the overriding system properties in 
ExecRunner, because values from -DadditionalSystemProperties must overrides the 
ones from jvmArgs stored in the config file from the exec jar.

> Maven Tomee Exec Mojo failed when provided server.xml use env vars
> ------------------------------------------------------------------
>
>                 Key: TOMEE-1626
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1626
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Maven Plugin
>    Affects Versions: 7.0.0
>         Environment: windows, unix
>            Reporter: Yann Blazart
>              Labels: TomEE, maven
>             Fix For: 7.0.0
>
>         Attachments: patch-tome-exec.diff
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When in the tomee exec we provide a server.xml that use en vars, the plugin 
> try to convert values directly in Integer, it fail.
> Exemple : 
>         <Connector port="${http.port}" protocol="HTTP/1.1"
>                    connectionTimeout="20000"
>                    redirectPort="8443" xpoweredBy="false" server="Apache 
> TomEE" />



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to