|
How maven dependency works? or Where do the libraries come from? |
|
Subject: How maven dependency works? or Where do the libraries come from?
Author: Alex_Raj
In response to: Maven -- Configure
Posted on: 10/10/2019 12:50:57 AM
With maven, project finds it's denpedent libraries in the following order:
First locally look at location ${user.home}/.m2/repository/ If not found, then remotely download from http://repo.maven.apache.org/maven2/
>
> On 10/10/2019 12:50:08 AM Alex_Raj wrote:
Maven configuration occurs at 3 levels:
Project - most static configuration occurs in pom.xml Installation - this is configuration added once for a Maven installation User - this is configuration specific to a particular user in ${user.home}/.m2/settings.xml
The separation is quite clear - the project defines information that applies to the project, no matter who is building it, while the others both define settings for the current environment.
References:
|
|
|
|