MAVEN is a project management tool that contains a project object model, a set of standard collections, a Project life cycle (Project Lifecycle), a dependency management system (Dependency Management System), and the logic used to run the plug-in (plugin) target (goal) defined in the life cycle phase (phase). When you use MAVEN, you use a well-defined project object model to describe your project, and maven can apply crosscutting logic that comes from a set of shared (or custom) plug-ins.
The basic common commands are as follows:
mvn archetype:create 创建Maven项目mvn compile 编译源代码mvn deploy 发布项目mvn test-compile 编译测试源代码mvn test 运行应用程序中的单元测试mvn site 生成项目相关信息的网站mvn clean 清除项目目录中的生成结果mvn package 根据项目生成的jarmvn install 在本地Repository中安装jarmvn eclipse:eclipse 生成eclipse项目文件mvnjetty:run 启动jetty服务mvntomcat:run 启动tomcat服务mvn clean package -Dmaven.test.skip=true:清除以前的包后重新打包,跳过测试类
For starters, after installing MAVEN on the installation, the discovery directory does not exist in the. M2 folder because no Maven-related commands are executed, and MAVEN will automatically create the. M2 folder after execution.
The steps are as follows:
1) Open doc execute mvn help:system command under cmd command, this command meaning can refer to address as follows:http://www.yoodb.com/article/display/ 167, after the completion of the implementation will be found in the directory automatically created. M2 folder, native specific path
2) By default. The components of the MAVEN local warehouse/repository,maven placed under the M2 folder are stored in the repository, and some of the development packages (jars) are as follows:
.cacheactivationantantlraopallianceasmasmack-androidavalon-franmeworkbouncycastlec3pocglibclassworldscom
3) Fatal error Compiling:tools.jar not found errors may be reported when using Eclipse to execute MAVEN command, specific solution personal referral address:http://www.yoodb.com/ article/display/205
Original address: http://www.yoodb.com/article/display/1021
Maven local repository. M2 Folder path explanation