how to run many maven goals from eclipse in one click

╄→гoц情女王★ 提交于 2019-12-07 23:59:59

问题


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

it's possible to do such a thing ?

notice : Maven Integration Plugin for Eclipse is already installed.

thanks


回答1:


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

  1. If projects are related, bundle them into a parent project and run the deploy goal on the parent project. You will need to tweak the goals that need to run as part of the deploy phase
  2. Use an assembly project that uses artifacts from these 3 projects and creates required assemblies and does the deployment
  3. Write a script (batch or shell) which executes goals for these projects one after the other. This can be run from eclipse as an external command


来源:https://stackoverflow.com/questions/21418515/how-to-run-many-maven-goals-from-eclipse-in-one-click

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!