Hi, I'm working on a project (ObjetTrouve) that offers services as EJB packaged in an EAR.
ObjetTrouve structure : - ObjetTrouveEAR (depends on ObjetTrouveEJB and ObjetTrouveService) - ObjetTrouveEJB (depends on ObjetTrouveService) - ObjetTrouveService (depends on third party jar like Spring, log4j, ...) When buiding the EAR with maven it only packages the direct dependencies i.e. ObjetTrouveEJB and ObjetTrouveService, my application can not work without third party jar needed by ObjetTrouveService. Questions : 1 - how configure the EAR plugin to include the dependencies of ObjetTrouveService ? 2 - Is there an elegant solution to this problem ? One solution may be to repeat ObjetTrouveService dependencies in the EAR project pom.xml but it's an ugly solution as I need to duplicate information. For information here's EAR pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>sapiens</groupId> <artifactId>ObjetTrouveEAR</artifactId> <packaging>ear</packaging> <version>2.6.0</version> <name>ObjetTrouveEAR</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>sapiens</groupId> <artifactId>ObjetTrouveEJB</artifactId> <type>ejb</type> <version>2.6.0</version> </dependency> <dependency> <groupId>sapiens</groupId> <artifactId>ObjetTrouveService</artifactId> <type>jar</type> <version>2.6.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <configuration> <modules> <jarModule> <groupId>sapiens</groupId> <artifactId>ObjetTrouveService</artifactId> <includeInApplicationXml> true </includeInApplicationXml> </jarModule> <ejbModule> <groupId>sapiens</groupId> <artifactId>ObjetTrouveEJB</artifactId> </ejbModule> </modules> </configuration> </plugin> </plugins> </build> </project> Regards, Joël Costigliola --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]