title: Combine multiple jar into one (using maven)
body: <p>I have a project in javafx , I have 3 dependencies I try to combine them with my principale jar using maven : 
  The result I got a jar (1.82mb) but when I click he dosen't launch noting appears.</p>
  
  <p><code>pom.xml</code></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;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.scilab.forge&lt;/groupId&gt;
              &lt;artifactId&gt;jlatexmath&lt;/artifactId&gt;
              &lt;version&gt;1.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jfree&lt;/groupId&gt;
              &lt;artifactId&gt;fxgraphics2d&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.controlsfx&lt;/groupId&gt;
              &lt;artifactId&gt;controlsfx&lt;/artifactId&gt;
              &lt;version&gt;8.0.6_20&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;groupId&gt;groupId&lt;/groupId&gt;
      &lt;artifactId&gt;FXCalc&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>and this is some screenshot :</p>
  
  <p><img src="https://i.stack.imgur.com/VYhNr.jpg" alt="enter image description here">
  <img src="https://i.stack.imgur.com/7KRXl.jpg" alt="enter image description here"></p>
  
  <p>The problem : the jar file I got dosen't work , it dosen't want to launch , I tried using ant and gradle but I don't know how to use them.</p>
  
  <p><b>EDIT :</b> After trying the solution I get a jar but it still dosen't launch and I have no error.
  <img src="https://i.stack.imgur.com/Z9DRF.jpg" alt="enter image description here">
  <b>EDIT 2 :</b></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;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jfree&lt;/groupId&gt;
              &lt;artifactId&gt;fxgraphics2d&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.scilab.forge&lt;/groupId&gt;
              &lt;artifactId&gt;jlatexmath&lt;/artifactId&gt;
              &lt;version&gt;1.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.controlsfx&lt;/groupId&gt;
              &lt;artifactId&gt;controlsfx&lt;/artifactId&gt;
              &lt;version&gt;8.0.6&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.4.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;descriptorRefs&gt;
                      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                  &lt;/descriptorRefs&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;mainClass&gt;sample.Main&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;make-assembly&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;single&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;groupId&gt;groupId&lt;/groupId&gt;
      &lt;artifactId&gt;CalculatorFX&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  
  &lt;/project&gt;
  </code></pre>