title: JavaFx with Maven: doesn't find the mainClass
body: <p>I have a multi modules maven project and I have a problem with javaFx (I used the plugin zenJava).</p>
  
  <p>When I want to build the jar, I have this error:
  Failed to execute goal com.zenjava:javafx-maven-plugin:8.8.3:build-jar (default-cli) on project XXXX: The parameters 'mainClass' for goal com.zenjava:javafx-maven-plugin:8.8.3:build-jar are missing or invalid </p>
  
  <p>But, I defined the mainClass in the parent pom.</p>
  
  <p>This is the parent pom:</p>
  
  <pre><code>    &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                 &lt;groupId&gt;commons-lang&lt;/groupId&gt;
                 &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
             &lt;/dependency&gt;
         &lt;/dependencies&gt;
    &lt;/dependencyManagement&gt;
    &lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                    &lt;groupId&gt;com.zenjava&lt;/groupId&gt;
                    &lt;artifactId&gt;javafx-maven-plugin&lt;/artifactId&gt;
                     &lt;version&gt;${javafx.version}&lt;/version&gt;
                     &lt;configuration&gt;
                          &lt;vendor&gt;XXX&lt;/vendor&gt;                
                          &lt;mainClass&gt;com.package.gui&lt;/mainClass&gt;
                          &lt;verbose&gt;true&lt;/verbose&gt;
                          &lt;jarFileName&gt;XXXX.jar&lt;/jarFileName&gt;
                          &lt;bundler&gt;EXE&lt;/bundler&gt;
                           &lt;nativeInstallers/&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;create-jfxjar&lt;/id&gt;
                              &lt;phase&gt;package&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;build-jar&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;create-native&lt;/id&gt;
                              &lt;phase&gt;package&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;build-native&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&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;3.6.1&lt;/version&gt;
                      &lt;configuration&gt;
                        &lt;source&gt;1.8&lt;/source&gt;
                        &lt;target&gt;1.8&lt;/target&gt;
                      &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>And this is the pom of GUI module </p>
  
  <pre><code> &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;com.zenjava&lt;/groupId&gt;
                  &lt;artifactId&gt;javafx-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt; 
      &lt;/build&gt;
  </code></pre>