Maven profile for single module

前端 未结 2 1718
离开以前
离开以前 2021-02-15 22:18

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 22:59

    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.

提交回复
热议问题