To create a project _maven tutorial with the MAVEN command

Source: Internet
Author: User
The project creates an empty directory on the hard disk to store the MAVEN project, such as E:\mvnDemo Open the cmd window, switch to the Mvndemo directory input Command mvn archetype:generate, press ENTER, if it is the first time use, need to download the plugin, Wait a few minutes. If the first installation may require you to enter MVN archetype:generate again, the input will allow you to enter the following content groupId and Artifactid the same as the department name and the group name, to uniquely identify a project; package is to help you create a standard package. Version indicates that the current project has been entered with the build number. The MAVEN project was created successfully.

Basic Operation mvn Clean empty the compiled file, all the compiled files are under the target file, and then empty the folder after use. MVN compile recompile the project source code to the target folder. MVN test tests whether the project is working correctly. MVN install the current project into a jar or a war installation to the local MAVEN warehouse, where the installation path is the coordinates of the project. MVN site to generate information, after execution in the target directory will have a site directory, open the index.html can see the project information. MVN Javadoc:javadoc automatically generates API documentation in the Target\site\apidocs directory.

Related Article

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.