top of page
Search
  • Tech Explore

Downloading Dependencies from Maven Central


In each maven project we need multiple dependencies and JARs to be imported.


There are two ways we can included dependent component to a maven project.

  • Download the dependent component JAR file and directly include it to the maven project.

  • Include the dependent component as a dependency to the maven project. During the compile time maven will fetch the dependencies from the relevant repositories and include in the project.

Maven Central is a publicly hosted repository, where you can publish your components and fetch any existing components for your project.


Most of the time when building a maven project, we use JAR files that are hosted in Maven Central Repository.

Maven Central Repository can be access via the following URL :


There could be third party dependencies and JARs which are not hosted in Maven Central Repository. There are couple of ways we can include these third party JARs to the maven project. We will discuss it in the upcoming posts.


In this post let us see how we can search for a hosted maven dependency in the maven central and download it.


In the Maven Central Repository search field, search for the dependency by the name. In this example i will try to download WSO2 Identity Server Claim Manager, which is used in the org.wso2.samples.is package.


Search for "claim manager"

Here we can either download from the Central repository OR WSO2 Public repository. Let's go with the WSO2 Public Repository.

Select the desired version of the JAR you want to download OR include in your pom as a dependency.

Here you can download the compiled JAR file and directly include to the maven project OR add it as a dependency to your maven project.


Thank you for reading!!!



31 views0 comments
Post: Blog2_Post
bottom of page