Hi Siegfried,

What do you mean by "add the JAR as additional dependency" ?
I am new to maven, I am not sure what that means. I looked in the documentation 
and tried to google after it, but couldn't find any info.

thanks,
Atti

From: Siegfried Goeschl <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Subject: Re: dependency of jar included in war?

 Hi Atti,

currently a WAR does not participate in the dependency inheritance 
mechanism. What you could do since your WAR depends on a single JAR is 
to add the JAR as additional dependency.

This is of course a hack but not too ugly.

Cheers,

Siegfried Goeschl

Attila Ravai wrote:
> Hi,
> 
> I have a war file which has a dependency on my project, which is a jar. The 
> jar file itself has a lot of dependencies (like oracle classes.jar). When 
> building the war file, all I get in the web-inf/lib is what I specified in 
> the war dependency, which is myproject.jar. However the classes.jar it never 
> is added to the war, so when trying to load the app, I get an classnotfound 
> exception.
> 
> Is there a way to have the war include the jar files dependencies? I would 
> hate to duplicate the dependencies in the war pom. I cannot create a parent 
> module, as they are two different projects.
> 
> thanks
> Atti
> 
> 


 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Reply via email to