go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  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:

  •  


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.