Known issue. check out these links.
http://www.nabble.com/forum/Search.jtp?forum=178&local=y&query=MJAR-30
(previous discussion)
http://jira.codehaus.org/browse/MJAR-30 (patch)
Mark Eramo <[EMAIL PROTECTED]> wrote on 09/21/2007 01:44:57 PM:
> I have been trying to exclude certain files from the jar however it does
> not seem to be working. I am trying to do this with the include and
> exclude switches. I searched the mailing list and some posts say this
> should work, others say no so I am trying to find out if anyone has
> accomplished this with Maven 2.0.
>
> For example, I have this in my pom.xml:
>
> <resources>
> <resource>
> <directory>${basedir}/target</directory>
> <excludes>
> <exclude>**/web/handlers/**/*.*</exclude>
> </excludes>
> </resource>
> <resource>
> <directory>${basedir}</directory>
> <includes>
> <include>ReleaseNotes.txt</include>
> </includes>
> </resource>
> </resources>
>
> Now the include works, it adds the release notes to the jar but the
> exclude does not work. Very strange. Any ideas or comments on how to
> accomplish this would be much appreciated.
> I know I could do it with the ant plugin after the compile phase (move
> the code I do not want out of the target folder) but I was hoping I
> could simply accomplish this with the excludes switch.
>
> Regards,
> Mark
>
This email message and any attachments may contain confidential,
proprietary or non-public information. The information is intended solely
for the designated recipient(s). If an addressing or transmission error
has misdirected this email, please notify the sender immediately and
destroy this email. Any review, dissemination, use or reliance upon this
information by unintended recipients is prohibited. Any opinions
expressed in this email are those of the author personally.