Search code examples
javaeclipsemavenmaven-pluginmaven-eclipse-plugin

Write custom maven command set using eclipse plugin


from command line I can write

mvn install -Pauto-deploy

Is it possible to store this command in my eclipse maven plugin. I want to execute this command by click.

I see only standart things in maven menu:

build
clean 
install 
test

I want see at this list my_autodeploy_command

I am sure it is possible but I don't know how.

Can you show how?

where can I write mvn install -Pauto-deploy ?

Somewhere here?

enter image description here

UPDDATE

for taringamberini

enter image description here


Solution

  • The dialog is the correct one. Install, the lifecycle phase to run up to, is put into the goals field, your profile (auto-deploy) is put into the Profiles field (without -P):

    Run As Dialog

    You could also copy the full line (without leading "mvn") into the Goals field