Using Maven to generate a Java project or Web project

Source: Internet
Author: User

I often to generate a Java project or Web project with Eclipse tool. Well, I had no idea when I want to generate a Java project or Web project with the command window in the Windows 7. So, I think I need to record what to generate a Java project or Web project with the command window in the Windows 7.

En, you should install the Maven in your computer before you want to generate a project. And if you had no idea how to install Maven in your computer, you could go "install the maven in your computer "To see more information on how to install the Maven in your computer.

Now, Using the below command to generate a Java project:

F:\MAVEN>MVN Archetype:generate-dgroupid=com.b510.shopping-dartifactid=shoppin -core-darchetypeartifactid=maven-archetype-quickstart-dinteractivemode=false

Then click the ' Enter ' to run command

You can see the "BUILD SUCCESS", It means so had generated a Java project just now.

Now, Using the below command to generate a WEB project:

F:\MAVEN>MVN Archetype:generate-dgroupid=com.b510.shopping-dartifactid=shoppin G-core-darchetypeartifactid=maven-archetype-webapp-dinteractivemode=false

The different between in generating a Java project and a Web Project with command window in the Windows 7:

-darchetypeartifactid=maven-archetype-quickstart--For       Java Project-darchetypeartifactid= Maven-archetype-webapp--For          Web Project

========================================================

More Reading,and 中文版 is important.

I ' m Hongten

E |  [Email protected] B | Http://www.cnblogs.com/hongten

========================================================

Using Maven to generate a Java project or Web project

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.