如何通过一次点击从eclipse运行许多maven目标 [英] how to run many maven goals from eclipse in one click

查看:150
本文介绍了如何通过一次点击从eclipse运行许多maven目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,如果可以从 eclipse运行许多 maven 目标 同时,以其他方式一次点击。例如,
我有3个项目project1,project2,project3。
i希望例如清理它们,然后安装project1和project2然后安装project3并部署3个项目(只需点击一下)。

i want to know, if it's possible to run many maven goals from eclipse at the same time ,in other way in one click. for example i have 3 project project1 ,project2 ,project3. i want for example to clean them all ,and install project1 and project2 then project3 and deploy the 3 projects (in one click) .

可以这样做一件事?

通知:已经安装了Eclipse的Maven Integration Plugin。

notice : Maven Integration Plugin for Eclipse is already installed.

谢谢

推荐答案

您无法使用m2e为多个项目运行目标。我建议如下:

You cannot run goals for multiple projects using m2e. I suggest the following:


  1. 如果项目相关,则将它们捆绑到父项目中并在父项目上运行部署目标。您将需要调整需要在部署阶段中运行的目标

  2. 使用使用这3个项目中的工件并创建所需程序集并进行部署的程序集项目

  3. 编写一个脚本(批处理或shell),一个接一个地执行这些项目的目标。这可以作为外部命令从eclipse运行

这篇关于如何通过一次点击从eclipse运行许多maven目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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