[ 
https://issues.apache.org/jira/browse/MEJB-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17966077#comment-17966077
 ] 

Olivier Lamy commented on MEJB-45:
----------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-ejb-plugin#63|https://github.com/apache/maven-ejb-plugin/issues/63].
 

> ejb-jar.xml is added twice if exclusion is used
> -----------------------------------------------
>
>                 Key: MEJB-45
>                 URL: https://issues.apache.org/jira/browse/MEJB-45
>             Project: Maven EJB Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Dominique Jean-Prost
>            Assignee: Benjamin Bentmann
>            Priority: Major
>             Fix For: 2.2.1
>
>         Attachments: patch.txt
>
>
> The actual behaviour of the ejb mojo is that if excluding something from the 
> ejb (server side), ejb-jar.xml is not excluded anymore. As it's not excluded 
> anymore, it appears twice in the archive (once because added as the 
> deployment descriptor file, and twice because is present in the output dir).
> Please note that the actual version of test 
> org.apache.maven.plugin.ejb.EjbMojoTest.testMainJarExclusions() should not 
> pass because of the problem reported.
> I suggest changing the behaviour of the exclusion mecanism so that 
> ejb-jar.xml is always "excluded" so that it only appears once in the jar (see 
> provided patch).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to