使用eclipse插件编写自定义Maven命令集

编程入门 行业动态 更新时间:2024-10-23 23:24:34
本文介绍了使用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命令集

本文发布于:2023-11-24 03:28:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623805.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   插件   命令集   eclipse   Maven

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!