问题
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
- Ant exec task
- Ant java task
- Maven ant task
来源:https://stackoverflow.com/questions/21411659/how-to-run-maven-project-using-an-ant-script