To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
is it possible to enable productionMode in Maven buidl?
By now i found out only following to enable productionMode:* web.xml -> context-param or inti-param* code -> @VaadinServletConfiguration(productionMode = false)
Note: I cann't find any online documentation for "vaadin-maven-plugin" :( I expected somohow, that this plugin could do this job.
I didn't try, but found some alternatives:
You will probably want to use Maven variables and profiles with the previous methods.
thank you for your answer.
I solved this using Filtering in web.xml (point 3.). Using Maven Profiles (1. point) is also quite interesting .
... but i would still expect that Vaadin Maven plugin can do this and there is no need to do somev Maven tricks.