[ 
https://issues.apache.org/jira/browse/MSHADE-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MSHADE-134.
---------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period 
of time. If you think this issue still applies, retest your problem with the 
most recent version of Maven and the affected component, reopen and post your 
results.

> Shade plugin does not seem to be aware of the classifier setting for the jar 
> plugin
> -----------------------------------------------------------------------------------
>
>                 Key: MSHADE-134
>                 URL: https://issues.apache.org/jira/browse/MSHADE-134
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Thomas Dudziak
>            Priority: Major
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to