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:

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. M2 folder prevents the components of the MAVEN local repository/repository,maven from being 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

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.