Setting productionMode in @VaadinServletConfiguration from Maven

Hi,

How can I set productionMode in the @VaadinServletConfiguration annotation from Maven? I want to set it to true for a maven release profile.

Thanks
Markus

Set below parameters in application.yml file,

vaadin.productionMode: true

vaadin.heartbeatInterval: 300

vaadin.closeIdleSessions: true