You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Dudziak (JIRA)" <ji...@codehaus.org> on 2012/10/31 02:34:13 UTC

[jira] (MSHADE-134) Shade plugin does not seem to be aware of the classifier setting for the jar plugin

Thomas Dudziak created MSHADE-134:
-------------------------------------

             Summary: Shade plugin does not seem to be aware of the classifier setting for the jar plugin
                 Key: MSHADE-134
                 URL: https://jira.codehaus.org/browse/MSHADE-134
             Project: Maven 2.x Shade Plugin
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Thomas Dudziak


When using the classifier configuration for the jar plugin, e.g.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <version>2.4</version>
  <configuration>
    <classifier>foo</classifier>
  </configuration>
</plugin>

then the shade plugin (in both attach or replace modes) complains about a missing main artifact:

[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]   <execution> 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.
[ERROR] - You removed the configuration of the maven-jar-plugin that produces the main artifact.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira