zoukankan      html  css  js  c++  java
  • Using Maven to generate a Java Project or Web project

    I often to generate a Java project or Web project with Eclipse tool. Well, I have 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 how 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 have no idea how to install Maven in your computer, you could go to "Install the Maven in your computer" to see more information about 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 that you had generated a Java project just now.

    Now, Using below command to generate a Web project:

    F:maven>mvn archetype:generate -DgroupId=com.b510.shopping -DartifactId=shopping-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 english is important.

    I'm Hongten

     

    大哥哥大姐姐,觉得有用打赏点哦!多多少少没关系,一分也是对我的支持和鼓励。谢谢。
    Hongten博客排名在100名以内。粉丝过千。
    Hongten出品,必是精品。

    E | hongtenzone@foxmail.com  B | http://www.cnblogs.com/hongten

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

  • 相关阅读:
    Java基础知识
    spring data jpa 表关联设置用户表关联角色表配置
    centos 服务器 nginx 负载均衡服务安装
    Java jdk 8 新特性
    个人收款支付系统-半自动化解决方案
    纯净版Windows7系统迅雷下载路径
    Centos里开机自启动Node 服务程序
    Centos 7将java jar包自定义开机启动服务
    安装zabbix-agent客户端
    Centos7系统安装Zabbix4.4(yum源安装)
  • 原文地址:https://www.cnblogs.com/hongten/p/hongten_maven_generate_project.html
Copyright © 2011-2022 走看看