title: Maven Shade Plugin + Launch4j
body: <p>I have two maven projects inside the same folder. One is dependent upon other i.e. has the other one it its dependencies.
  Now I would like to use maven shade plugin and launch4j but it seems to complicated to me.</p>
  
  <p>Can somebody give me a step by step explanation for my case?</p>
  
  <p>So I have 2 POM files, one in each project. My multi-module file looks like this:</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;org&lt;/groupId&gt;
    &lt;artifactId&gt;some artifact&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
  
    &lt;build&gt;
    &lt;plugins&gt;
        &lt;plugin&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;configuration&gt;
                &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                &lt;target&gt;1.5&lt;/target&gt;
                &lt;source&gt;1.5&lt;/source&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.3.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;configuration&gt;
                        &lt;transformers&gt;
                            &lt;!-- This bit sets the main class for the executable jar as you otherwise --&gt;
                            &lt;!-- would with the assembly plugin                                       --&gt;
                            &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
                                &lt;manifestEntries&gt;
                                    &lt;Main-Class&gt;my_main class from project1&lt;/Main-Class&gt;
                                &lt;/manifestEntries&gt;
                            &lt;/transformer&gt;
                            &lt;!-- This bit merges the various GeoTools META-INF/services files         --&gt;
                            &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/&gt;
                        &lt;/transformers&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;modules&gt;
    &lt;module&gt;project1&lt;/module&gt;
    &lt;module&gt;project2&lt;/module&gt;
  &lt;/modules&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>and then I get the following error:
  In project2: Failed to create shaded artifact, project main artifact does not exist.</p>