Muti-modules project with assembly in sub modules have build problem

A parent pom have several modules and each module use assembly to build different distribution jars.

 

Issue:

Building going back to already built modules and recursive

 

Cause:

One module use assembly as the goal in assembly plugin, this will force maven to build all poms.

 

Reference:

http://maven.apache.org/plugins/maven-assembly-plugin/attached-mojo.html

assembly:attached

Full name:

org.apache.maven.plugins:maven-assembly-plugin:2.4:attached

This plugin goal has been deprecated:

Use assembly:single instead! The assembly:attached mojo leads to non-standard builds.

Description:

Assemble an application bundle or distribution from an assembly descriptor, WITHOUT first forcing Maven to build all POMs to the package phase (as is required by the assembly:assembly goal).
NOTE: This goal should ONLY be run from the command line, and if building a multimodule project it should be used from the root POM. Use the assembly:single goal for binding your assembly to the lifecycle.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值