jira-importer commented on issue #52:
URL: 
https://github.com/apache/maven-ejb-plugin/issues/52#issuecomment-2879259095

   **[Hans G 
Knudsen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hgk.lenio)**
 commented
   
   Hi!
   
   we have run into this problem when using 'ejb-client' in jboss ESB and jboss 
PAR as well as WAR where all dependencies of the 'ejb' module are included..
   
   i have created a small sample project with an 'ejb', 'ear' and a 'war' (the 
war is not included in ear)
   
   as a workaround i have tried adding 'exclusions' to the 'ejb-client' -  for 
dependencies only needed on server and if i run
   
   'mvn dependency:tree' (from root folder) it looks ok :
   
   [INFO] 
------------------------------------------------------------------------
   [INFO] Building war
   [INFO]    task-segment: [dependency:tree]
   [INFO] 
------------------------------------------------------------------------
   [INFO] [dependency:tree {execution: default-cli}]
   [INFO] dk.lenio.maven.ejb.client:war:war:0.1-SNAPSHOT
   [INFO] +- 
dk.lenio.maven.ejb.client:ejb:ejb-client:client:0.1-SNAPSHOT:compile
   [INFO] +- javax.servlet:servlet-api:jar:2.5:provided
   [INFO] +- log4j:log4j:jar:1.2.15:provided
   [INFO] |  +- javax.mail:mail:jar:1.4:provided
   [INFO] |  |  \- javax.activation:activation:jar:1.1:provided
   [INFO] |  \- javax.jms:jms:jar:1.1:provided
   [INFO] \- junit:junit:jar:3.8.1:test
   
   but if i run 'mvn clean install' from root folder - the server side jars are 
included..
   
   1768  05-14-10 09:59   WEB-INF/classes/test/war/TestServlet.class
   62983  04-27-09 11:12   WEB-INF/lib/activation-1.1.jar
   3792  05-14-10 09:59   WEB-INF/lib/ejb-0.1-SNAPSHOT-client.jar
   XX   215885  01-29-10 11:38   WEB-INF/lib/webservices-api-2.0.jar
   XX 13051007  01-22-10 11:14   WEB-INF/lib/webservices-rt-2.0.jar
   215  04-14-10 12:18   WEB-INF/web.xml
   
   if i cd (change directory) to the 'war' folder and 'mvn clean install' - the 
jars are excluded :
   
       1768  05-14-10 10:32   WEB-INF/classes/test/war/TestServlet.class
       3792  05-14-10 09:59   WEB-INF/lib/ejb-0.1-SNAPSHOT-client.jar
        215  04-14-10 12:18   WEB-INF/web.xml
   
   How is depending on a 'ejb-client' supposed to work ?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to