title: how do you create a war for spring boot / react application
body: <p>I have a spring boot app as backend and using react as front end (both are in same project).  I only have the one pom file for the backend and I run the spring app manually and then do a npm start on the frontend, all works fine.  What I want to do now is deploy both backend and frontend and start them up automatically.  Do I need another POM file for the front end or something which will execute npm etc?  Front end was created with create-react-app and currently running on port 3000 ( &quot;start&quot;: &quot;react-scripts start&quot; ), my backend running on port 8080 but would be deployed to an external tomcat server.</p>
  <p>Do I need to add the following plugin:</p>
  <pre><code> &lt;groupId&gt;com.github.eirslett&lt;/groupId&gt;
   &lt;artifactId&gt;frontend-maven-plugin&lt;/artifactId&gt;
  </code></pre>
  <p>and then some execution rules in the pom?</p>
  <p>Any information is much appreciated.</p>
  <p>Thanks</p>