ejb-jar.xml is added twice if exclusion is used
-----------------------------------------------

                 Key: MEJB-45
                 URL: http://jira.codehaus.org/browse/MEJB-45
             Project: Maven 2.x EJB Plugin
          Issue Type: Bug
    Affects Versions: 2.2
            Reporter: Dominique Jean-Prost
         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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to