seaswalker / posts

0 stars 0 forks source link

maven打包/安装一个module #21

Open seaswalker opened 3 years ago

seaswalker commented 3 years ago
mvn clean install -pl 'spring-boot-starter' -am -Dmaven.test.skip=true

此命令应该在父module的目录执行,以shiro的spring-boot-starter为例,执行路径应该是: image 父module的pom.xml中定义了子module的名称:

<modules>
    <module>spring-boot-starter</module>
    <module>spring-boot-web-starter</module>
</modules>

实际打包时子module可能依赖其它module,所以可能需要首先对整个工程所有module进行编译、打包。