Home  >  Article  >  Java  >  Teach you how to install the project management tool-Maven (Windows installation) graphic tutorial

Teach you how to install the project management tool-Maven (Windows installation) graphic tutorial

PHP中文网
PHP中文网Original
2017-06-22 14:41:061570browse

What is Maven?

Install Maven environment:

Download address:

Maven3.3+JDK1.7 or above

Download the windows version

Just unzip it locally and explain the folders in it

bin directory: contains the mvn running script

boot directory: contains the framework of a class loader

conf directory: is the configuration file directory

lib directory: contains all the class libraries that maven usually uses

Configure environment variables

M2_HOME: Installation home directory D:\maven

path: D:\maven\bin

Check whether the installation is successful

m2 -version

Maven commonly used build commands

mvn -v View version

compile compilation

test test

package packaging

clean delete target

install install the jar package into the local warehouse

Maven project directory structure

src/maiin/java contains the project source code; src/test/java contains the test source code (Junit); pom The .xml file contains the POM project model (Project Object Model)

The above is the detailed content of Teach you how to install the project management tool-Maven (Windows installation) graphic tutorial. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn