Plugin includes <type>ejb</type> libraries twice, e.g. JBoss Seam
-----------------------------------------------------------------

                 Key: MEAR-106
                 URL: http://jira.codehaus.org/browse/MEAR-106
             Project: Maven 2.x Ear Plugin
          Issue Type: Bug
            Reporter: Elias Ross


-- Problem --

Same EJB library appears multiple times, causing class loading issues, 
especially for JBoss Seam.

Contents of ear:

META-INF/
META-INF/MANIFEST.MF
lib/
jboss-seam-2.1.2.jar
...
lib/jboss-seam-2.1.2.jar

-- To reproduce --

Add a dependency to the pom.xml, including JBoss Seam as an ejb type.

        <dependency>
            <groupId>org.jboss.seam</groupId>
            <artifactId>jboss-seam</artifactId>
            <type>ejb</type>
        </dependency>

Also include it as part of the configuration:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-ear-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <version>5</version>
                    <ejbVersion>3.0</ejbVersion>
                    <defaultLibBundleDir>lib</defaultLibBundleDir>
                    <jboss>
                        <version>4</version>
                        
<loader-repository>com.parkme:loader=${ear.name}.ear</loader-repository>
                        <library-directory>lib</library-directory>
                        <finalName>${ear.name}</finalName>
                    </jboss>

                    <modules>
...
                        <ejbModule>
                            <groupId>org.jboss.seam</groupId>
                            <artifactId>jboss-seam</artifactId>
                        </ejbModule>
                    </modules>

                </configuration>

Note that Seam requires this module to be deployed as an EJB module, so 
exclusion does NOT work.

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