Earlier I run .sh and .rb file in the maven life cycle using the following,
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>Version Calculation</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>${basedir}/scripts/IndexRunner/test.rb</executable>
</configuration>
</plugin>
Now I want to run a .js file, I tried by replacing test.rb to some file test.js but its not working, any help to how to run a javascript file during maven lifecycle