For WAR you only only have to provide lib directory within the WAR File. It
can contain any depending JAR you need. This is standard for WAR files
(startig at 2.3 Servlet Spec I think).
For EJB-JARS and EAR we don't have such a standard currently. You have to
provide the relative path in the Manifest of the EJB-JAR if you want to
force containers to load the dependent JAR Files.

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 21. November 2003 11:48
> An: [EMAIL PROTECTED]
> Betreff: 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]

Reply via email to