You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Konrad Windszus <kw...@apache.org> on 2025/01/05 11:05:46 UTC

Maven Ant task

HI,
In https://maven.apache.org/ant-tasks/ it is stated that the Maven Ant tasks are no longer maintained and one should use https://maven.apache.org/resolver-ant-tasks/ instead.
However there is no equivalent for the task https://maven.apache.org/ant-tasks/examples/mvn.html (i.e. for triggering a Maven build from Ant).
What is the recommended alternative? Using mvnwrapper and call it via https://ant.apache.org/manual/Tasks/exec.html?

Thanks,
Konrad


Re: Maven Ant task

Posted by Hervé Boutemy <he...@free.fr>.
Le dimanche 5 janvier 2025, 12:05:46 CET Konrad Windszus a écrit :
> HI,
> In https://maven.apache.org/ant-tasks/ it is stated that the Maven Ant tasks
> are no longer maintained and one should use
> https://maven.apache.org/resolver-ant-tasks/ instead. However there is no
> equivalent for the task
> https://maven.apache.org/ant-tasks/examples/mvn.html (i.e. for triggering a
> Maven build from Ant). What is the recommended alternative? Using
> mvnwrapper and call it via https://ant.apache.org/manual/Tasks/exec.html?
I'd say yes
very smart way to replace old Maven task specific code with well known, 
independently supported, mechanisms = Maven's mvnwrapper (to download an 
install Maven) and Ant's exec

> 
> Thanks,
> Konrad





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org