You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by indira <in...@gmail.com> on 2014/02/10 14:12:38 UTC

How to skip the execution of batch file based on need in maven build

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: How to skip the execution of batch file based on need in maven build

Posted by William Ferguson <wi...@xandar.com.au>.
Remove the phase element from the execution.

William


On Mon, Feb 10, 2014 at 11:12 PM, indira <in...@gmail.com> wrote:

> 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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>