Skip to content

Instantly share code, notes, and snippets.

@bepcyc
Created January 30, 2012 13:08
Show Gist options
  • Save bepcyc/1704309 to your computer and use it in GitHub Desktop.
Save bepcyc/1704309 to your computer and use it in GitHub Desktop.
maven plugin to run shell or batch scripts
<!--source: http://stackoverflow.com/a/3493919/918211-->
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution><!-- Run our version calculation script -->
<id>Version Calculation</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/scripts/calculate-version.sh</executable>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment