Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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>
- .
- .
- .
Add Comment
Please, Sign In to add comment