You may want to integrate Grunt and Maven to be able to build frontend every time just before a Maven build.
For this purpose, I prefer to use exec plugin to invoke “grunt build” in the beginning of each Maven build.
My “Gruntfile.js” is under /WebContent directory so
line is important.
Even if it works fine, there is also an error like
Plugin execution not covered by lifecycle configuration bla bla bla
So instead of this I started to use eirslett/frontend-maven-plugin with this configuration
It is a better choice!