Managing dependencies using Maven
12 June 2008Maven can manage all jar file dependencies for the build machines. Let me explain how to do this.
We use dependency element to refer to a jar file which reside in a remote repository. It is said that in near future, the dependencies will extend beyond jar files. Maven places the jar files (fetched from remote repository) on the local repository. The
<dependencies > <dependency > <id >ant </id > <version >1.4.1 </version > <url >http://jakarta.apache.org/ant/ </url > </dependency > <dependency > <id >commons-beanutils </id > <version >1.4 </version > </dependency > <dependency > <id >commons-collections </id > <version >2.0 </version > <url >http://jakarta.apache.org/commons/collections.html </url > </dependency > <dependency > <id >commons-configuration </id > <version >1.0-dev </version > <url >http://jakarta.apache.org/commons/ </url > </dependency > … <dependencies>
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Managing dependencies using Maven