Maven External Dependencies
# Maven Introducing External Dependencies
**If we need to introduce third-party library files into our project, how should we operate?**
The dependencies list in pom.xml lists all the external dependencies our project needs to build.
To add a dependency, we generally first add a `lib` folder under the `src` folder, and then copy the jar files needed by your project into the `lib` folder. We are using `ldapjdk.jar`, which is a helper library for LDAP operations:
!(#)
Then add the following dependency to the `pom.xml` file:
ldapjdkldapjdk1.0system${basedir}srclibldapjdk.jar
The complete code of the `pom.xml` file is as follows:
4.0.0com.companyname.bankconsumerBankingjar1.0-SNAPSHOTconsumerBankinghttp://maven.apache.orgjunitjunit3.8.1testldapjdkldapjdksystem1.0${basedir}srclibldapjdk.jar
YouTip