使用eclipse插件编写自定义Maven命令集 [英] Write custom maven command set using eclipse plugin

查看:233
本文介绍了使用eclipse插件编写自定义Maven命令集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在命令行中写

mvn install -Pauto-deploy

是否可以将此命令存储在我的Eclipse Maven插件中.我想通过单击执行此命令.

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

我在Maven菜单中仅看到标准的东西:

I see only standart things in maven menu:

build
clean 
install 
test

我想在此列表中看到my_autodeploy_command

我确定有可能,但我不知道如何.

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

你能展示如何吗?

我在哪里可以写mvn install -Pauto-deploy?

这里某处?

更新

taringamberini

for taringamberini

推荐答案

对话框是正确的.将要运行的生命周期阶段安装安装到目标字段中,将您的配置文件(自动部署)放入配置文件"字段中(不带-P):

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):

您也可以将整行(不带"mvn"开头)复制到目标"字段中

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

这篇关于使用eclipse插件编写自定义Maven命令集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆