Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nemoo/3053611 to your computer and use it in GitHub Desktop.
Save nemoo/3053611 to your computer and use it in GitHub Desktop.
using mavanagaiata to write git sha1 to manifest.fm
// these are fragments of my maven pom that extract the sha1 hash from my git repo and write it to manifest file in the created war.
.
.
.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<archive>
<manifestEntries>
<version>${project.version}</version>
<sha1>${mavanagaiata.commit.sha}</sha1>
<buildTimestamp>${maven.build.timestamp}</buildTimestamp>
</manifestEntries>
</archive>
</configuration>
</plugin>
.
.
.
<plugin>
<groupId>com.github.koraktor</groupId>
<artifactId>mavanagaiata</artifactId>
<version>0.3.2</version>
<executions>
<execution>
<id>load-git-branch</id>
<goals>
<goal>commit</goal>
</goals>
</execution>
</executions>
</plugin>
.
.
.
@nemoo
Copy link
Author

nemoo commented Jul 5, 2012

ok, great, works. updated the gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment