• maven工程运行单个模块


    最近在公司的一个项目里用到了maven的多模块,由于项目比较大,每次修改后构建整个工程耗时太久,需要单独构建某个模块,但是用的电脑之前安装的intellij里面不支持直接install某个模块。

    所以就用了mvn命令,mvn对此有支持的选项: 

    -pl, --projects

            Build specified reactor projects instead of all projects

    -am, --also-make

            If project list is specified, also build projects required by the list

    -amd, --also-make-dependents

            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

  • 相关阅读:
    Meta http-equiv属性详解(转)
    meta
    meta viewport 详解
    jquery 常用函数
    jquery 设置css样式
    jquery 常用函数集锦
    DATEDIFF 和 DATEADD
    C# 二进制图片串互转
    C# 二进制字符串互转
    重集合中找出最相近的一个数字
  • 原文地址:https://www.cnblogs.com/govoid/p/4980807.html
Copyright © 2020-2023  润新知