Following is an useful ant script to run the frequent maven commands using the m2 plugin in eclipse,
This will be useful for projects using maven and ant as build tools.
<target name="maven clean"> <artifact:mvn mavenHome="${maven.home}" fork="true"> <arg value="clean" /> </artifact:mvn> </target> <target name="maven install"> <artifact:mvn mavenHome="${maven.home}" fork="true"> <arg value="install" /> </artifact:mvn> </target> <target name="maven clean-install"> <artifact:mvn mavenHome="${maven.home}" fork="true"> <arg value="clean" /> <arg value="install" /> </artifact:mvn> </target>
This will be useful for projects using maven and ant as build tools.
No comments:
Post a Comment