Maven local repository. M2 Folder path explanation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.