Added exec-maven-plugin pulgin in pom.xml
<plugins>
.....................
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>runbatchfile</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>test.bat</executable>
</configuration>
</plugin>
</plugins>
When I execute the cmd 'mvn clean install' my bat file test.bat is getting
executed. I wanted to execute the batch file on need basis.
--
View this message in context:
http://maven.40175.n5.nabble.com/How-to-skip-the-execution-of-batch-file-based-on-need-in-maven-build-tp5783909.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]