Eclipse Maven Build and Test with One Button

前端 未结 3 781
甜味超标
甜味超标 2020-12-17 23:13

The most common build activity I do in Eclipse (other than allowing auto-build to do its thing) is to perform a \"Maven Build...\" with parameters of clean and package. Thi

3条回答
  •  粉色の甜心
    2020-12-17 23:25

    If you create a Maven Run Configuration and put a number as the first character in the name, then you can use Shift-Alt-X Ctrl-M N, where N is the number you gave as first character in the name. For your case, do the following.

    1. Right click on your project, select Run As and then select Maven build... This will open a dialog to create a new Maven Run Configuration.
    2. Make the name of the configuration 1 - test.
    3. Put test as the goal.
    4. Press Apply and then Close.
    5. Type Shift-Alt-X Ctrl-M 1. This will select the configuration you just created.
    6. Press enter will launch it.

提交回复
热议问题