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

Matthias Bünger commented on MEAR-106:
--------------------------------------

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

> Plugin includes <type>ejb</type> libraries twice, e.g. JBoss Seam
> -----------------------------------------------------------------
>
>                 Key: MEAR-106
>                 URL: https://issues.apache.org/jira/browse/MEAR-106
>             Project: Maven EAR Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>            Reporter: Elias Ross
>            Priority: Major
>         Attachments: MEAR-106.zip
>
>
> -- 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to