I am using Maven inside Eclipse to build and deploy code.
When choosing {Context Menu} > Run As
, several Maven goals appear as follows:
I understand that if I want to create a custom build configuration, I would click "Run Configurations..." to create a custom configuration.
However, there seems to be no way to modify the configurations that appear conveniently on the menu. For instance, you can't add a profile to #7 "Maven install". The result is tedious, because you have click about 5 times to launch the build.
Is there any way to add profiles or additional goals to #7 "Maven install" build or add custom configurations to the context menu?
Is there a way to launch a specific build configuration with a keyboard combination?
I have tried IntelliJ and NetBeans and the Maven integration in all of them seems confusing trying to differentiate between basic Maven goals and the more realistic custom combination of goals and profiles.
Profiles are specified in pom. xml file using its activeProfiles/profiles elements and are triggered in variety of ways.
From the main menu, select Run | Edit Configurations to open the run/debug configuration for your project. In the list that opens, select Run Maven Goal. In the Select Maven Goal dialog, specify a project and a goal that you want to execute before launching the project. Click OK.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With