ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <>
Subject RE: How to deploy a project's depenencies
Date Mon, 10 Sep 2007 16:55:06 GMT
There are several strategies for managing library dependecies in a java
project. You could use something like Apache Maven
( You could check in the libraries to your
source control system.

In my work, most often the easiest solution is to check in the 3rd party
jars to source control and deploy them with our compiled code to the
runtime environment. When a dependency is another internally developed
library, I would do the following.

<available property="some.jar.exists" file="relative/path/to/some.jar"/>

<target name="build-dependency" unless="some.jar.exists"/>
 <ant file="path/to/some/build.xml" target="build"/>

<target name="deploy" depends="build-dependency">

I hope this helps.

-Rob Anderson

> -----Original Message-----
> From: Rafael Barrera Oro [] 
> Sent: Monday, September 10, 2007 9:40 AM
> To:
> Subject: How to deploy a project's depenencies
>    Hello i am working with two differente projects with 
> separate build files. My intention is to build project A and 
> make a JAR out of it (they are Java projects), then include 
> it in project B and finally, deploy project B in a tomcat server.
>    The thing is i can not manage to deploy project B with all 
> its dependencies, it seems like whenever i deploy something 
> ends missing on the deployment. Judging by the errors i get, 
> the problem is the absence of several dependencies, not just 
> project A but a lot of JAR referenced by project B.
> Thanks in advance, any help would be very appreciated.
> Rafael
> PD: I hope i made myself clear, if not, feel free to point out.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: For 
> additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message