多模块Maven工程单独打包某一模块工程
生活随笔
收集整理的這篇文章主要介紹了
多模块Maven工程单独打包某一模块工程
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
在eclipse中,多模塊項(xiàng)目中單獨(dú)打包某個(gè)web工程時(shí),選中 "resolve workspace artifacts" 會(huì)導(dǎo)致war包內(nèi)依賴的其他模塊的jar為空目錄。 正確的打包某個(gè)模塊的方式是在parent工程上運(yùn)行 Run As... > Maven Build...,在Goals中輸入:
clean package -pl module_name -am多模塊工程的打包命令參考:
-am --also-make 同時(shí)構(gòu)建所列模塊的依賴模塊; -amd -also-make-dependents 同時(shí)構(gòu)建依賴于所列模塊的模塊; -pl --projects <arg> 構(gòu)建制定的模塊,模塊間用逗號(hào)分隔; -rf -resume-from <arg> 從指定的模塊恢復(fù)反應(yīng)堆。看英文的更助于理解:
-am,--also-makeIf project list is specified, also build projects required by the list-amd,--also-make-dependentsIf project list is specified, also build projects that depend on projects on the list-pl,--projects <arg>Comma-delimited list of specified reactor projects to build instead of all projects. A project can be specified by [groupId]:artifactId or by its relative path.-rf,--resume-from <arg>Resume reactor from specified project轉(zhuǎn)載于:https://my.oschina.net/ccor/blog/704365
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的多模块Maven工程单独打包某一模块工程的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Android开发过程中的部分经验总结
- 下一篇: HTTP深入浅出个人总结