title: How to run gulp task and spring-boot:run together with maven?
body: <p>I have two project, <em>framework</em> that is Spring boot application, and another is <em>framework-web</em> that contains html layouts and web ui.</p>
  
  <p>I run maven with this goals, <code>clean install</code> to install framework into local repository. Then i want to run maven with goal <code>clean spring-boot:run</code> and this profiles <code>prod, dev</code> on framework-web to start Spring boot application and run gulp task on framework-web.
  But it runs only gulp tasks, and does not start spring boot application.</p>
  
  <p>This is pom.xml of framework-web:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.rgh&lt;/groupId&gt;
      &lt;artifactId&gt;framework-web&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-releases&lt;/version&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.4.2.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;start-class&gt;com.rgh.framework.Application&lt;/start-class&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.rgh&lt;/groupId&gt;
              &lt;artifactId&gt;framework&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-releases&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;prod&lt;/id&gt;
              &lt;build&gt;
                  &lt;finalName&gt;framework-web&lt;/finalName&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                      &lt;/plugin&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;1.8&lt;/source&gt;
                              &lt;target&gt;1.8&lt;/target&gt;
                              &lt;fork&gt;true&lt;/fork&gt;
                              &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;id&gt;dev&lt;/id&gt;
              &lt;build&gt;
                  &lt;finalName&gt;framework-web&lt;/finalName&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;com.github.eirslett&lt;/groupId&gt;
                          &lt;artifactId&gt;frontend-maven-plugin&lt;/artifactId&gt;
                          &lt;version&gt;1.0&lt;/version&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;install node and npm&lt;/id&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;install-node-and-npm&lt;/goal&gt;
                                  &lt;/goals&gt;
                                  &lt;configuration&gt;
                                      &lt;nodeVersion&gt;v4.4.7&lt;/nodeVersion&gt;
                                      &lt;npmVersion&gt;3.10.5&lt;/npmVersion&gt;
                                  &lt;/configuration&gt;
                              &lt;/execution&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;npm install&lt;/id&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;npm&lt;/goal&gt;
                                  &lt;/goals&gt;
                                  &lt;configuration&gt;
                                      &lt;arguments&gt;install&lt;/arguments&gt;
                                  &lt;/configuration&gt;
                              &lt;/execution&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;bower install&lt;/id&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;bower&lt;/goal&gt;
                                  &lt;/goals&gt;
                                  &lt;configuration&gt;
                                      &lt;arguments&gt;install --no-color&lt;/arguments&gt;
                                  &lt;/configuration&gt;
                              &lt;/execution&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;gulp build&lt;/id&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;gulp&lt;/goal&gt;
                                  &lt;/goals&gt;
                                  &lt;configuration&gt;
                                      &lt;arguments&gt;serve&lt;/arguments&gt;
                                  &lt;/configuration&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>and this is run configuration in eclipse:</p>
  
  <p><a href="https://i.stack.imgur.com/s12Zo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s12Zo.png" alt="enter image description here"></a></p>