Maven profile for single module

前端 未结 2 1085

I have a multi module maven project, which builds successfully, I\'d like to build just one of the modules I have. How would I do that with profiles ? I could d

2条回答
  •  伪装坚强ぢ
    2021-02-15 23:08

    To overcome additivity nature of maven default working with , you can use reactor with particular profile, e.g.:

    mvn -pl module-2 -Pprofile-name package
    

    This will package module-2 defined in profile-name and not in default profile.

提交回复
热议问题