First, we need to understand what Maven is,
MAVEN is a software project management tool that is based on a project object model that can manage the construction, reporting, and documentation of a project through a short description of the information. In addition to its program building capabilities, Maven offers advanced project management tools. Because MAVEN's default build rules are highly reusable, it is common to build scripts with two or three lines of Maven to build simple projects. Thanks to MAVEN's project-oriented approach, many Apache Jakarta projects use Maven, and the percentage of company projects that are MAVEN-based continues to grow. The word maven comes from Yiddish, meaning the accumulation of knowledge, which was first used in the Jakata turbine project to try to simplify the construction process. There were many projects at the time, their ant build files were only slightly different, and the jar files were maintained by CVS. So the Maven founders started MAVEN, a clear definition of the project, including a convenient way to publish project information, and a way to share jars across multiple projects. 1. First of all, we have to download it from the official website 2. After the download, we unzip it, but after that there is a very important step to proceed, which is to configure the environment variables, this is very important and error prone. First, to right the computer, click Advanced System Settings, select the environment variables inside. Follow the picture below to get it done.
Set the environment variables as shown in the picture.
3. After the configuration is complete, at the Windows command prompt, enter MVN-V test, the configuration successfully displayed
4.maven is built on top of Java, and we're going to use it to eclipse, and then we're going to configure Eclipse,
5. Let's take a look at the POM:
5. Create a project that belongs to us
Input command: MVN Archetype:create-dgroupid=com.mycompany.app-dartifactid=my-app
Then we go to the appropriate disk, such as:
Then enter MVN archetype:generate and select version for the following effect.
We import the projects we've created into eclipse to get the results we want.
Installation and use of MAVEN