Thanks a lot.

I am having a problem in including a jar file though.

I have the following directory structure.

Dir A/ 
     - lib/
     - pom.xml

Dir B/
    - WEB-INF/lib
    - pom.xml (includes dependency for Dir A)

Dir C/
    - pom.xml

I want to place the jar files in Dir B/WEB-INF/lib directory and make it
accessible to Dir C ?? How can I do this ??

Regards
Prabhu




Beelen, M. - SPLXL wrote:
> 
> Hi Prabhu,
> 
> 
> If you want to build your war-file, but don't want a certain dependency
> to be included in the WEB-INF/lib-directory, then you should mark the
> dependency as being provided as described in the introduction to
> dependency mechanism[1]. By doing so the jar will be available during
> compilation, but no included in the war-file.
> 
> This would result in something like this:
> 
> <dependency>
>     <groupId>javax.servlet</groupId>
>     <artifactId>servlet-api</artifactId>
>     <version>2.4</version<
>     <scope>provided</scope>
> </dependency>
> 
> 
> [1]
> http://maven.apache.org/guides/introduction/introduction-to-dependency-m
> echanism.html
>  
> 
> 
> With kind regards,
>   Marco Beelen
>  ~Software Engineer~
> 
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
> 
> 
> -----Original Message-----
> From: prabho [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 19, 2008 4:15 PM
> To: [email protected]
> Subject: How to omit/include a jar file during packaging
> 
> 
> Hi all,
> 
> I am trying to create a WAR file with class files and other jar files.
> As I have conflict with an external jar file, I am supposed to omit my
> jar file while packaging. Can you please let me know how to achieve
> that?
> 
> Any help is greatly appreciated.
> 
> Thanks
> Prabhu
> --
> View this message in context:
> http://www.nabble.com/How-to-omit-include-a-jar-file-during-packaging-tp
> 18009940p18009940.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> **********************************************************************
> For information, services and offers, please visit our web site:
> http://www.klm.com. This e-mail and any attachment may contain
> confidential and privileged material intended for the addressee
> only. If you are not the addressee, you are notified that no part
> of the e-mail or any attachment may be disclosed, copied or
> distributed, and that any other action related to this e-mail or
> attachment is strictly prohibited, and may be unlawful. If you have
> received this e-mail by error, please notify the sender immediately
> by return e-mail, and delete this message. 
> 
> Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries
> and/or its employees shall not be liable for the incorrect or
> incomplete transmission of this e-mail or any attachments, nor
> responsible for any delay in receipt.
> Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal
> Dutch Airlines) is registered in Amstelveen, The Netherlands, with
> registered number 33014286 
> **********************************************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-omit-include-a-jar-file-during-packaging-tp18009940p18018894.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to