I have a WAR, JAR, EJB, and even a SAR project. In my EAR I set these dependencies, they all seem to be able to find each other when the EAR is deployed (JBoss). Of course I have to arrange the build in the correct order, for example the JAR project has to be built first since the other projects include stuff from the jar package etc.
<dependency> <groupId>${pom.groupId}</groupId> <artifactId>warproject</artifactId> <version>1.0</version> <type>war</type> <properties> <ear.bundle>true</ear.bundle> <ear.appxml.war.context-root>client</ear.appxml.war.context-root> </properties> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>ejbproject</artifactId> <type>ejb</type> <version>1.0</version> <properties> <ear.bundle>true</ear.bundle> <ejb.manifest.classpath>true</ejb.manifest.classpath> </properties> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>hiberhagel</artifactId> <version>1.0</version> <type>sar</type> <properties> <ear.bundle>true</ear.bundle> <ejb.manifest.classpath>true</ejb.manifest.classpath> </properties> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>hageljar</artifactId> <version>1.0</version> <properties> <ear.bundle>true</ear.bundle> <ejb.manifest.classpath>true</ejb.manifest.classpath> </properties> </dependency> ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 2:47 AM Subject: RE: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? Problem with the ear.bundle is, that the jar is installed as java module (which is reserved for e.g. ejb client jars). I can manually copy the jar via the copy-deps task, but that doesn't solve the problem of the classpath (escpecially for war's, because there's no war.manifest.classpath property). Cheers, simon -----Original Message----- From: R a n e s [mailto:[EMAIL PROTECTED] Sent: Freitag, 21. November 2003 10:51 To: Maven Users List Subject: Re: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? Hi, You can set the "ear.bundle" to true. <dependency> <id>common</id> <type>jar</type> <properties> <ear.bundle>true</ear.bundle> </properties> </dependency> Regards, Ranes. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 2:57 PM Subject: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? When building an ear, i'd like to include the dependent jar files in the lib dir of the ear and add them to the Class-Path of the including applications. Is there any easy way to do so? Cheers, simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]