title: problems packaging maven project: LifecycleExecutionException
body: <p>I'm trying to package my app but got an error:</p>
  
  <pre><code>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
  rg.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on
   project javafx: Compilation failure
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:212)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:153)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:145)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
  ct(LifecycleModuleBuilder.java:116)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
  ct(LifecycleModuleBuilder.java:80)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
  adedBuilder.build(SingleThreadedBuilder.java:51)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
  eStarter.java:120)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
  cher.java:289)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
  a:229)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
  uncher.java:415)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
  356)
  Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail
  ure
          at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
  Mojo.java:729)
          at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
  BuildPluginManager.java:132)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:208)
          ... 19 more
  </code></pre>
  
  <p>I also get a lot of <code>error: illegal start of expression</code> and <code>error: illegal start of expression</code> but the Idea compiles and runs the app well and it actually works well without any exceptions.</p>
  
  <p>Here is my pom.xml file:</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/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.myapp.edi&lt;/groupId&gt;
  &lt;artifactId&gt;javafx&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;name&gt;javafx&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;mainClass&gt;com.myapp.edi.gui.Main&lt;/mainClass&gt;
  &lt;/properties&gt;
  
  &lt;organization&gt;
      &lt;!-- Used as the 'Vendor' for JNLP generation --&gt;
      &lt;name&gt;Your Organisation&lt;/name&gt;
  &lt;/organization&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;unpack-dependencies&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;unpack-dependencies&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;excludeScope&gt;system&lt;/excludeScope&gt;
                          &lt;excludeGroupIds&gt;junit,org.mockito,org.hamcrest&lt;/excludeGroupIds&gt;
                          &lt;outputDirectory&gt;${project.build.directory}/classes&lt;/outputDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;unpack-dependencies&lt;/id&gt;
  
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;exec&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;executable&gt;${java.home}/../bin/javafxpackager&lt;/executable&gt;
                          &lt;arguments&gt;
                              &lt;argument&gt;-createjar&lt;/argument&gt;
                              &lt;argument&gt;-nocss2bin&lt;/argument&gt;
                              &lt;argument&gt;-appclass&lt;/argument&gt;
                              &lt;argument&gt;${mainClass}&lt;/argument&gt;
                              &lt;argument&gt;-srcdir&lt;/argument&gt;
                              &lt;argument&gt;${project.build.directory}/classes&lt;/argument&gt;
                              &lt;argument&gt;-outdir&lt;/argument&gt;
                              &lt;argument&gt;${project.build.directory}&lt;/argument&gt;
                              &lt;argument&gt;-outfile&lt;/argument&gt;
                              &lt;argument&gt;${project.build.finalName}.jar&lt;/argument&gt;
                          &lt;/arguments&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
                  &lt;execution&gt;
                      &lt;id&gt;default-cli&lt;/id&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;exec&lt;/goal&gt;                            
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;executable&gt;${java.home}/bin/java&lt;/executable&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-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.16&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;additionalClasspathElements&gt;
                      &lt;additionalClasspathElement&gt;${java.home}/lib/jfxrt.jar&lt;/additionalClasspathElement&gt;
                  &lt;/additionalClasspathElements&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.7.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;shade&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;shadedArtifactAttached&gt;true&lt;/shadedArtifactAttached&gt;
                  &lt;shadedClassifierName&gt;shaded&lt;/shadedClassifierName&gt;
                  &lt;transformers&gt;
                      &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
                          &lt;mainClass&gt;com.myapp.edi.gui.Main&lt;/mainClass&gt;
                      &lt;/transformer&gt;
                  &lt;/transformers&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.akathist.maven.plugins.launch4j&lt;/groupId&gt;
              &lt;artifactId&gt;launch4j-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.5.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;l4j-clui&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;launch4j&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;headerType&gt;gui&lt;/headerType&gt;
                          &lt;jar&gt;${project.build.directory}/${artifactId}-${version}-shaded.jar&lt;/jar&gt;
                          &lt;outfile&gt;${project.build.directory}/myapp.exe&lt;/outfile&gt;
                          &lt;downloadUrl&gt;http://java.com/download&lt;/downloadUrl&gt;
                          &lt;classPath&gt;
                              &lt;mainClass&gt;com.myapp.edi.gui.Main&lt;/mainClass&gt;
                              &lt;preCp&gt;anything&lt;/preCp&gt;
                          &lt;/classPath&gt;
                          &lt;icon&gt;src/main/resources/icon/application.ico&lt;/icon&gt;
                          &lt;jre&gt;
                              &lt;minVersion&gt;1.6.0&lt;/minVersion&gt;
                              &lt;jdkPreference&gt;preferJre&lt;/jdkPreference&gt;
                          &lt;/jre&gt;
                          &lt;versionInfo&gt;
                              &lt;fileVersion&gt;1.0.0.0&lt;/fileVersion&gt;
                              &lt;txtFileVersion&gt;${project.version}&lt;/txtFileVersion&gt;
                              &lt;fileDescription&gt;${project.name}&lt;/fileDescription&gt;
                              &lt;copyright&gt;2012 hasCode.com&lt;/copyright&gt;
                              &lt;productVersion&gt;1.0.0.0&lt;/productVersion&gt;
                              &lt;txtProductVersion&gt;1.0.0.0&lt;/txtProductVersion&gt;
                              &lt;productName&gt;${project.name}&lt;/productName&gt;
                              &lt;companyName&gt;mike.com&lt;/companyName&gt;
                              &lt;internalName&gt;myapp&lt;/internalName&gt;
                              &lt;originalFilename&gt;myapp.exe&lt;/originalFilename&gt;
                          &lt;/versionInfo&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>