How to run maven project using an ant script?

断了今生、忘了曾经 提交于 2020-01-16 13:04:42

问题


I have created the sample maven project and I am able to build maven project successfully using with maven plugin (mvn clean, mvn install ...) but I want to run the sample maven project using an ant script (ant clean, ant) without using maven goals.

Is this possible to run maven project using with ant script?


回答1:


You can pick and choose the following three ways

  1. Ant exec task
  2. Ant java task
  3. Maven ant task


来源:https://stackoverflow.com/questions/21411659/how-to-run-maven-project-using-an-ant-script

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