You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2008/07/07 15:26:26 UTC

[jira] Commented: (MEJB-27) duplicated ejb-jar.xml

    [ http://jira.codehaus.org/browse/MEJB-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140923#action_140923 ] 

Dennis Lundberg commented on MEJB-27:
-------------------------------------

You are getting one copy in /meta-inf/ from the Resource Plugin because you are specifying the <resources> element.

You get the other copy in /META-INF/ from the EJB Plugin.

Note the difference in case of the directory name.


> duplicated ejb-jar.xml
> ----------------------
>
>                 Key: MEJB-27
>                 URL: http://jira.codehaus.org/browse/MEJB-27
>             Project: Maven 2.x Ejb Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1
>         Environment: Windows XP, jdk 1.4.2, maven 2.0.7
>            Reporter: Stefan Chis
>         Attachments: trainingwall_mdb-1.0.0.jar
>
>
> The ejb-jar.xml descriptor is duplicated in the generated jar file (the ejb archive). The project is a J2EE multi-module project. The weird thing, is this project is the only one affected, other J2EE multi-module project are built just fine.
> Anyway, I am attaching the generated artifact, as evidence of the problem.
> Also, here is the relevant snippet from the child pom:
>     <resources>
>       <resource>
>         <directory>src/main/resources/meta-inf</directory>
>         <targetPath>meta-inf</targetPath>
>       </resource>
>     </resources>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-ejb-plugin</artifactId>
>         <configuration>
>           <archive>
>            <manifest>
>                <addClasspath>true</addClasspath>
>            </manifest>
>           </archive>
>         </configuration>
>       </plugin>
>     </plugins>
> Problem affects the versions 2.0, 2.1of the ejb plugin.

-- 
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