zoukankan      html  css  js  c++  java
  • maven 单独构建多模块项目中的单个模块

    最近在公司的一个项目里用到了maven的多模块,由于项目比较大,每次修改后构建整个工程耗时太久,需要单独构建某个模块,mvn有支持的选项:

    1. -pl, --projects
    2. Build specified reactor projects instead of all projects
    3. -am, --also-make
    4. If project list is specified, also build projects required by the list
    5. -amd, --also-make-dependents
    6. If project list is specified, also build projects that depend on projects on the list

    首先切换到工程的根目录,

    单独构建模块 pingjuan-web,同时会构建 pingjuan-web 模块依赖的其他模块

    $ mvn install -pl pingjuan-web -am
    
    

    单独构建模块 pingjuan-common,同时构建依赖模块 pingjuan-common 的其他模块

    $ mvn install -pl pingjuan-common -am -amd

    转载:https://blog.csdn.net/yanjunlu/article/details/39177115?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.channel_param
  • 相关阅读:
    JAVA-复数计算器
    第十三周总结
    java多线程
    写作的意义
    mysql删除有外键表数据
    Linux firewall防火墙设置
    linux安装ftp
    SELECT list is not in GROUP BY clause and contains nonaggregated
    primordials is not defined
    maven手动添加jar包
  • 原文地址:https://www.cnblogs.com/diyunpeng/p/13408982.html
Copyright © 2011-2022 走看看