[ http://jira.codehaus.org/browse/MEJB-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MEJB-45. --------------------------------- Resolution: Fixed Fix Version/s: 2.2.1 Assignee: Benjamin Bentmann Fixed in [r924415|http://svn.apache.org/viewvc?view=revision&revision=924415]. Thanks for the patch but I opted to only exclude the ejb-jar.xml automatically rather than all the default excludes. Otherwise, users won't be able to override the defaults. > 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 > Assignee: Benjamin Bentmann > 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 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