What will happen if dependency is not available in any of the remote repositories and central repository? Maven still provides answers for such a scenario using the concept of External Dependency.
- All the basic list of dependencies in the maven is handled by the maven central repository at which a project downloads the required dependencies.
- There will be typical scenarios where some particular dependencies may not be available in the maven remote and central repositories.
- Maven answers this scenario by providing the feature is called external dependency management.
- In maven, External dependencies we can easily configure as other dependencies in the pom.xml file
Steps to configure External Dependencies in Maven:
Create a directory/folder called libs in the maven project.
Download the library KKJava.jar and put it inside the libs directory/folder after that open the pom.xml of the project and add a new dependency as provided steps:
That’s all about Managing External Dependencies in Maven
You May Also Like:
What is Maven?
How to install and setup Maven Environment on windows?
Create a maven project using the command line
How to import the maven project in Eclipse?
How to Create a New Maven Project in Eclipse
How to create a maven web application project in Eclipse
How to create a multi-module project using maven?
How to Fix missing src/main/java & src/test/java folders in the Eclipse Maven web Project?
How to create user-defined properties in Maven?
What is the maven local repository location & how to change it?
How to add or update the maven settings.xml file in eclipse?
Importing maven remote Archetype Catalogs in eclipse ?
What is POM in the maven Project?
What is Super POM in Maven Project?
Understanding the purpose of Maven Plugin
Compiling the Maven project with different JDK versions?
Understanding of settings.xml in maven
How to enable a proxy setting in Maven?
Maven Dependency Scopes
How to generate javadoc in the maven Project
How to create a runnable JAR file with Maven?
How to add local jar files to a Maven project?
How to convert an existing Java Project to Maven in Eclipse?
How to exclude dependency in maven?
Understanding of Maven Repositories
What is an archetype in Maven?
Snapshot Vs Version in maven
Apache Maven – Profiles
If you have any feedback or suggestion please feel free to drop in below comment box.