vaadin-maven-plugin for vaadin

Hello,
I have questions regarding vaadin-maven-plugin mentioned in the build file (pom.xml) for Vaadin spring boot project.

  1. The profile mentioned in the pom.xml file → should it match the value of spring.profiles.active ?

  2. what does this do in the build file?
    <productionMode>true</productionMode>

  1. No

  2. it builds the application in production mode (bundling frontend files and so on) - you should use this if you wanna deploy your app to a server / container / anything not localhost