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