How to run maven project using an ant script?

2019-08-29 10:48发布

问题:

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


标签: java maven ant