Created
January 30, 2012 13:08
-
-
Save bepcyc/1704309 to your computer and use it in GitHub Desktop.
maven plugin to run shell or batch scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--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