Invoke Maven-Module Build from IntelliJ

前端 未结 2 1204
心在旅途
心在旅途 2021-02-02 16:23

I was wondering if someone knows a way to invoke a specific Maven module build from IntelliJ that will also build (or use already compiled classes from) modules on which it depe

2条回答
  •  有刺的猬
    2021-02-02 16:52

    I do it this way (Idea 8.1.4)

    • Open run dialog (shift-f10 on windows)
    • Click + and pick Maven to add a Maven build config
    • Fill in the form, adding
    • 1 working directory
    • 2 maven command line options
    • 3 maven goals
    • 4 profiles

    This is no different than running from command line. Which is what I am assuming you want.

提交回复
热议问题