I got solution for ant but how can I execute DOS command through maven ?
I am building my script in gruntjs and for run that I use node command prompt but I want to execute that command through maven. Any Idea???
This might be a use case for Maven's Exec Plugin.
Experiment with exec:exec goal in the plugin.
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution>
<id>Script Run</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/<relativepathinyourproject>/yourscript.bat</executable>
</configuration>
</execution>
</executions>
</plugin>