[
https://issues.apache.org/jira/browse/MJAR-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957289#comment-17957289
]
Matthias Bünger commented on MJAR-224:
--------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-jar-plugin#381|https://github.com/apache/maven-jar-plugin/issues/381].
> Not possible to exclude classes from primary jar only
> -----------------------------------------------------
>
> Key: MJAR-224
> URL: https://issues.apache.org/jira/browse/MJAR-224
> Project: Maven JAR Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Reporter: Sebb
> Assignee: Karl Heinz Marbaise
> Priority: Major
>
> The <excludes> config item can be used to exclude classes from a jar.
> However, if this is done for the main jar, the exclusion also applies to any
> other jars created with a different classifier.
> It does not appear to be possible to exclude a class from the main jar and
> include it in any others.
> This forces the use of other solutions such a the Maven Antrun Plugin
--
This message was sent by Atlassian Jira
(v8.20.10#820010)