我可以在命令行中写
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命令集
发布评论