Maven Repository contains all the jars indexed by artifact id and group id. Maven follows Convention over Configuration. When we run “mvn clean install”, we are executing the complete maven build life cycle. Just like you can identify a Java class with a class name and a package name, you can identify a maven artifact by a GroupId and an ArtifactId. You need to tell it by giving the details of the dependency. Maven would download the dependencies and make them available for use in your project.īut, how does Maven know what dependency to download? Maven helps us do all these and more… Naming a project Once you declare a dependency on Spring, Maven would downloadĭefining what Maven does is very difficult. ![]() For example, Spring might need other libaries - logging, xml etc. If you need a new version of the library, you can change the version and your project is ready!Īlso, You don’t need to worry about what libraries your library needs to work. The tool which you use to manage the libraries. You want to tell I need A, B, C and you would want the tool to download the libraries and make them available to you. You don’t want to store all the libraries in your project! FREE 5 DAY CHALLENGE - Learn Spring and Spring Boot.How to create a Spring Boot Project manually step by step?. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |