Use Maven exec plugin to execute the script.
In <executable> you can specify the type of file.
In <workingDirectory> provide the path to the script file.
In <arguments> provide the script file name and any parameter used inside the script.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<id>createSymLinks</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>ksh</executable>
<workingDirectory>${env.HOME}/config/src
</workingDirectory>
<arguments>
<argument>create_links.ksh</argument>
<argument>${BUILD_VERSION}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
In <executable> you can specify the type of file.
In <workingDirectory> provide the path to the script file.
In <arguments> provide the script file name and any parameter used inside the script.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<id>createSymLinks</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>ksh</executable>
<workingDirectory>${env.HOME}/config/src
</workingDirectory>
<arguments>
<argument>create_links.ksh</argument>
<argument>${BUILD_VERSION}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
No comments:
Post a Comment
Thank You for your valuable comment