开发者

Maven-assembly-plugin & incremental build

It seems that the assembly plugin (or jar/war plugin) are just dumb. They just can't figure out whenever there is just nothing to do.

A basic "Makefile" won't recompile a target if all its dependencies are older than the target.

For maven, it seems that the packaging is done "all th开发者_如何学JAVAe time" ! if I do "mvn package" and then "mvn integration-test", Maven will process the packages again and again. Since I build some fat-standalone jars : it takes a while !

Is it also the way is works for you, or is there something broken in my configuration.

Thanks in advance for your help,

Raphaël


In Maven exists a Life-Cycle which is run through every time you call a phase.

   mvn integration-test

means to run all phases which are before integration-test (incl. integration-test itself) which includes in your case the package phase. Furthermore you shouldn't call integration-test cause the post-integration-test will not run in this case. You should call mvn verify instead. The result from the above is you should simply call mvn integration-test and the package phase will run automatcially. Maven is not Make.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜