Running a shell script through the pom file.

Image for post
Image for post

When you implement a build system for a project, you may come across your project has used multiple structures which may be non java. At that point you may not have any other option than running a shell script via the pom file.

You can place the pom file inside the resource folder after the maven project is created.

You can use the following plugin to run the shell script. Assume that your shell script resides in <Project-home>/resource folder is run.sh.

<plugin>

Written by

Senior Software Engineer — QA at WSO2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store