title: Failed to execute goal org.grails:grails-maven-plugin:2.4.4:maven-grails-app-war
body: <p>I converted my Grails app to Maven project using <strong>grails create-pom</strong></p>
  
  <p>I wish create a war and execute <strong>mvn clean compile install</strong></p>
  
  <p><strong>Pom.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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/maven-v4_0_0.xsd"&gt;
  
      &lt;parent&gt;
          &lt;artifactId&gt;services&lt;/artifactId&gt;
          &lt;groupId&gt;com.bankbazaar&lt;/groupId&gt;
          &lt;version&gt;yt-2161&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.bankbazaar&lt;/groupId&gt;
      &lt;artifactId&gt;cds&lt;/artifactId&gt;
      &lt;packaging&gt;grails-app&lt;/packaging&gt;
  
  
      &lt;name&gt;cds&lt;/name&gt;
      &lt;description&gt;cds&lt;/description&gt;
  
      &lt;properties&gt;
          &lt;grails.version&gt;2.4.4&lt;/grails.version&gt;
          &lt;h2.version&gt;1.3.170&lt;/h2.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.bankbazaar&lt;/groupId&gt;
              &lt;artifactId&gt;core&lt;/artifactId&gt;
              &lt;version&gt;yt-2161&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails&lt;/groupId&gt;
              &lt;artifactId&gt;grails-dependencies&lt;/artifactId&gt;
              &lt;version&gt;${grails.version}&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails&lt;/groupId&gt;
              &lt;artifactId&gt;grails-test&lt;/artifactId&gt;
              &lt;version&gt;${grails.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails&lt;/groupId&gt;
              &lt;artifactId&gt;grails-plugin-testing&lt;/artifactId&gt;
              &lt;version&gt;${grails.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.11&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.spockframework&lt;/groupId&gt;
              &lt;artifactId&gt;spock-core&lt;/artifactId&gt;
              &lt;version&gt;0.7-groovy-2.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;version&gt;${h2.version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails&lt;/groupId&gt;
              &lt;artifactId&gt;grails-datastore-test-support&lt;/artifactId&gt;
              &lt;version&gt;1.0.2-grails-2.4&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
  
  
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;scaffolding&lt;/artifactId&gt;
              &lt;version&gt;2.1.2&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
  
              &lt;type&gt;zip&lt;/type&gt;
  
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;cache&lt;/artifactId&gt;
              &lt;version&gt;1.1.8&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
  
              &lt;type&gt;zip&lt;/type&gt;
  
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;asset-pipeline&lt;/artifactId&gt;
              &lt;version&gt;1.9.9&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
  
              &lt;type&gt;zip&lt;/type&gt;
  
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate4&lt;/artifactId&gt;
              &lt;version&gt;4.3.6.1&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
  
              &lt;type&gt;zip&lt;/type&gt;
  
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;database-migration&lt;/artifactId&gt;
              &lt;version&gt;1.4.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
  
              &lt;type&gt;zip&lt;/type&gt;
  
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;jquery&lt;/artifactId&gt;
              &lt;version&gt;1.11.1&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
  
              &lt;type&gt;zip&lt;/type&gt;
  
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;tomcat&lt;/artifactId&gt;
              &lt;version&gt;7.0.55&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
  
              &lt;type&gt;zip&lt;/type&gt;
  
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;webxml&lt;/artifactId&gt;
              &lt;version&gt;1.4.1&lt;/version&gt;
              &lt;type&gt;zip&lt;/type&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;pluginManagement/&gt;
          &lt;finalName&gt;cds&lt;/finalName&gt;
  
          &lt;plugins&gt;
              &lt;!-- Disables the Maven surefire plugin for Grails applications, as we have our own test runner --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;skip&gt;true&lt;/skip&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;surefire-it&lt;/id&gt;
                          &lt;phase&gt;integration-test&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;test&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;skip&gt;false&lt;/skip&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;filesets&gt;
                          &lt;fileset&gt;
                              &lt;directory&gt;plugins&lt;/directory&gt;
                              &lt;includes&gt;
                                  &lt;include&gt;**/*&lt;/include&gt;
                              &lt;/includes&gt;
                              &lt;followSymlinks&gt;false&lt;/followSymlinks&gt;
                          &lt;/fileset&gt;
                      &lt;/filesets&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.grails&lt;/groupId&gt;
                  &lt;artifactId&gt;grails-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;fork&gt;true&lt;/fork&gt;
                      &lt;grailsVersion&gt;${grails.version}&lt;/grailsVersion&gt;
                  &lt;/configuration&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;grails&lt;/id&gt;
              &lt;name&gt;grails&lt;/name&gt;
              &lt;url&gt;https://repo.grails.org/grails/core&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;grails-plugins&lt;/id&gt;
              &lt;name&gt;grails-plugins&lt;/name&gt;
              &lt;url&gt;https://repo.grails.org/grails/plugins&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;tools&lt;/id&gt;
              &lt;activation&gt;
                  &lt;property&gt;
                      &lt;name&gt;java.vendor&lt;/name&gt;
                      &lt;value&gt;Sun Microsystems Inc.&lt;/value&gt;
                  &lt;/property&gt;
              &lt;/activation&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;com.sun&lt;/groupId&gt;
                      &lt;artifactId&gt;tools&lt;/artifactId&gt;
                      &lt;version&gt;${java.version}&lt;/version&gt;
                      &lt;scope&gt;system&lt;/scope&gt;
                      &lt;systemPath&gt;${java.home}/../lib/tools.jar&lt;/systemPath&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I get the below error during creation of war </p>
  
  <p>[ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.4:maven-grails-app-war (default-maven-grails-app-war) on project cds: Execution default-maven-grails-app-war of goal org.grails:grails-maven-plugin:2.4.4:maven-grails-app-war failed: Error forking vm: Forked Grails VM exited with error -> [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.grails:grails-maven-plugin:2.4.4:maven-grails-app-war (default-maven-grails-app-war) on project cds: Execution default-maven-grails-app-war of goal org.grails:grails-maven-plugin:2.4.4:maven-grails-app-war failed: Error forking vm: 
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)</p>