Skip to content

Instantly share code, notes, and snippets.

@umermansoor
Created November 18, 2012 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umermansoor/4107601 to your computer and use it in GitHub Desktop.
Save umermansoor/4107601 to your computer and use it in GitHub Desktop.
<!-- exec plugin to run the python script which generates annotations -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>gen_ver_from_python</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>python</executable>
<arguments>
<argument>${basedir}/scripts/generate_version.py</argument>
<argument>${project.build.directory}</argument>
<argument>${version}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment