title: m2e shade eclipse "project main artifact does not exist"
body: <p>I'm trying to make a deployment package that bundles all the dependencies of my maven module that has dependencies to another maven project in eclipse.</p>
  
  <p>I have this in my pom.xml</p>
  
  <pre><code>&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.my.proj&lt;/groupId&gt;
  &lt;artifactId&gt;AAA&lt;/artifactId&gt;
  &lt;version&gt;0.0.2-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;btc&lt;/name&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.another.proj&lt;/groupId&gt;
          &lt;artifactId&gt;BBB&lt;/artifactId&gt;
          &lt;version&gt;1.4-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&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.6&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;transformer
                                  implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
                                  &lt;mainClass&gt;com.group.id.Launcher1&lt;/mainClass&gt;
                              &lt;/transformer&gt;
                          &lt;/transformers&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>I use that "m2 Maven Build" in eclipse with the goal "org.apache.maven.plugins:maven-shade-plugin:shade" and the "Resolve Workspace artifacts" ticked.</p>
  
  <p>It's failing with</p>
  
  <pre><code>--- maven-shade-plugin:1.6:shade (default-cli) @ AAA ---
  [ERROR] The project main artifact does not exist. This could have the following
  [ERROR] reasons:
  [ERROR] - You have invoked the goal directly from the command line. This is not
  [ERROR]   supported. Please add the goal to the default lifecycle via an
  [ERROR]   &lt;execution&gt; element in your POM and use "mvn package" to have it run.
  [ERROR] - You have bound the goal to a lifecycle phase before "package". Please
  [ERROR]   remove this binding from your POM such that the goal will be run in
  [ERROR]   the proper phase.
  </code></pre>
  
  <p>I ran out of idea at this point.</p>