Powerful project management tools maven

Probably Function: Build projects, management jar package, compiled code, automatically run the unit test, package, report generation, deployment projects, generating web sites.

Important features: dependency management ( Maven to jar the management process package, can greatly save disk space), a key construction project.

 

Maven project standard directory structure

scr / main / java directory code section core

scr / main / resources directory profile section

scr / text / java directory test code portion

scr / text / resources directory to test the profile section

If a web project there

scr / main / webapp page resources, JS , CSS , images, etc.

 

Maven commonly used commands

mvn clean delete locally compiled all the information

mvn compile compile the core code section

mvn test compile the core code and test code section

mvn package package

mvn install package and place it in a local warehouse

(This . 4 command when the command is executed in front of the latter command will be executed automatically)

mvn deploy release (requires some configuration)

 Back 5 commands together constitute maven default life cycle

 

Guess you like

Origin www.cnblogs.com/pzbangbangdai/p/11593543.html