eclipse 如何将 mvn clean 和 mvn install 合并到一个任务中?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9156927/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to combine mvn clean and mvn install into a single task?
提问by MockerTim
I'm following the Scala, Eclipse and Maven Integration tutorial.
It is really useful.
But there is one thing that seems annoying to me:
I always need to run two commands from the Eclipse Run asmenu:
我正在关注Scala、Eclipse 和 Maven 集成教程。
这真的很有用。
但是有一件事情让我觉得很烦:我总是需要从 Eclipse Run as菜单中运行两个命令:
Maven clean
Maven install
Is there any way to configure Scala and Maven plugins for Eclipse, to make it possible to run both tasks as a single commandfrom the Eclipse menu?
有什么方法可以为 Eclipse 配置 Scala 和 Maven 插件,以便可以从 Eclipse 菜单中将这两个任务作为单个命令运行?
For example:
例如:
Maven clean install
like in the following Eclipse non-Scala configuration.
回答by JB Nizet
Choose the option Maven build..., and type clean install
in the Goalstext box.
选择选项Maven build...,然后clean install
在目标文本框中键入。