[ 
http://jira.codehaus.org/browse/MEAR-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=187289#action_187289
 ] 

Jeff McClure edited comment on MEAR-85 at 8/16/09 2:44 PM:
-----------------------------------------------------------

I was able to fix this issue with the following patch:

{noformat} 
diff -rupN 
maven-ear-plugin-2.3.2/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
 
maven-ear-plugin-2.3.3-SNAPSHOT/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
--- 
maven-ear-plugin-2.3.2/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
      2009-02-22 08:21:05.000000000 -0800
+++ 
maven-ear-plugin-2.3.3-SNAPSHOT/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
     2009-08-16 12:39:46.000000000 -0700
@@ -85,7 +85,7 @@ public final class EarModuleFactory
         }
         else if ( "ejb-client".equals( artifactType ) )
         {
-            return new EjbClientModule( artifact, null );
+            return new EjbClientModule( artifact, defaultLibBundleDir );
         }
         else if ( "rar".equals( artifactType ) )
         {
{noformat} 

      was (Author: jeffmcclure):
    I was able to fix this issue with the following patch:

diff -rupN 
maven-ear-plugin-2.3.2/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
 
maven-ear-plugin-2.3.3-SNAPSHOT/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
--- 
maven-ear-plugin-2.3.2/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
      2009-02-22 08:21:05.000000000 -0800
+++ 
maven-ear-plugin-2.3.3-SNAPSHOT/src/main/java/org/apache/maven/plugin/ear/EarModuleFactory.java
     2009-08-16 12:39:46.000000000 -0700
@@ -85,7 +85,7 @@ public final class EarModuleFactory
         }
         else if ( "ejb-client".equals( artifactType ) )
         {
-            return new EjbClientModule( artifact, null );
+            return new EjbClientModule( artifact, defaultLibBundleDir );
         }
         else if ( "rar".equals( artifactType ) )
         {

  
> ejb-client dependencies should be placed in defaultLibBundleDir
> ---------------------------------------------------------------
>
>                 Key: MEAR-85
>                 URL: http://jira.codehaus.org/browse/MEAR-85
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: James Olsen
>            Assignee: Stephane Nicoll
>            Priority: Minor
>             Fix For: 2.5
>
>
> ejb-client jars should be placed in the defaultLibBundleDir when specified.  
> They're just standard jar dependencies not J2EE artifacts so should be 
> treated the same as other jars.  They're currently being placed in the root 
> directory.
> A workaround is to add an ejbClientModule entry to override the bundleDir:
> <modules>
>       <ejbClientModule>
>               <groupId>...</groupId>
>               <artifactId>...</artifactId>
>               <bundleDir>lib</bundleDir>
>       </ejbClientModule>
> </modules>

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