how to execute multiple command prompt commands using maven in single pom.xml -


i want run multiple command prompt commands in maven using single pom.xml. how can that?

for ex: have 2 commands execute. executing first command using exec-maven-plugin. below portion of pom.xml execute first command:

<plugin>     <groupid>org.codehaus.mojo</groupid>     <artifactid>exec-maven-plugin</artifactid>     <version>1.2.1</version>     <executions>         <execution>             <id>load files</id>             <phase>install</phase>             <goals>                 <goal>exec</goal>             </goals>         </execution>     </executions>     <configuration>          <executable>windchill</executable>         <arguments>             <argument>wt.load.loadfileset</argument>             <argument>-file</argument>             <argument>${basedir}/fileset.xml</argument>             <argument>-unattended</argument>             <argument>-noserverstop</argument>             <argument>-u</argument>             <argument>wcadmin</argument>             <argument>-p</argument>             <argument>wcadmin</argument>         </arguments>      </configuration> </plugin> 

for build success. possible execute 1 more command above in same pom.xml? not able that. please how add in pom.xml

the answer can found in faq. full answer here: http://article.gmane.org/gmane.comp.java.maven-plugins.mojo.user/1307

<plugin>     <groupid>org.codehaus.mojo</groupid>     <artifactid>exec-maven-plugin</artifactid>     <version>1.2.1</version>     <executions>         <execution>             <id>id1</id>             <phase>install</phase>             <goals>                 <goal>exec</goal>             </goals>             <configuration>                 <executable>cmd1</executable>             </configuration>         </execution>         <execution>             <id>id2</id>             <phase>install</phase>             <goals>                 <goal>exec</goal>             </goals>             <configuration>                 <executable>cmd2</executable>             </configuration>         </execution>     </executions> </plugin> 

Comments