It sounds like a series of unix commands you want to execute and it's better to keep them in a script and attach them to a maven lifecycle stage using exec-maven-plugin
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution>
<phase>generate-sources</phase> <!-- if you want to attach it to a phase -->
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/myScripts/myScript.sh</executable>
</configuration>
</execution>
</executions>
</plugin>