Java – I can’t understand the whole content of Maven. Look at the formal definition
I'm a beginner in Java. I recently tried to use some existing libraries. Suddenly Maven is between the two I don't know what Maven is when I read the project page on the Apache website
What does it need? I'm using some libraries, asking me to install Maven and some further steps, but I don't know what it is I see some places where it is used to automate the build process, but I can also easily do it through NetBeans
Any simple explanation will be highly appreciated
Editor: Thank you very much!
Please also clarify if the library I use contains POM file, what does this mean to me I am using some libraries to build a web application, most of which contain POM file What does it tell me to do? Will it force me to use Maven?
Solution
Maven is a self - righteous build tool and dependency management system
>Build tool: it will handle Convert java files to Class file may convert your resources and package them Jar or War or Ear or tar. GZ or Zip file In this regard, it is similar to Apache ant. > Dependency management: it handles dependencies: it downloads the required libraries, ensures that the download passes dependencies (i.e. dependencies of dependencies), and handles conflicting version numbers in dependencies (usually by trying to find libraries that meet all requirements) In this regard, it is similar to Apache ivy. > Opinionated: it has some default configurations to specify the layout and construction process of the project Although extensive customization can be carried out, it is difficult to do so Following the recommended defaults usually makes it easier to use Maven
A key concept in Maven is POM, which contains Maven's understanding of your project It is located in POM XML file This document is also the best indication for the project to use Maven