Guest User

Untitled

a guest
Nov 21st, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. // 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.
  2.  
  3. .
  4. .
  5. .
  6. <plugin>
  7. <groupId>org.apache.maven.plugins</groupId>
  8. <artifactId>maven-war-plugin</artifactId>
  9. <version>2.1.1</version>
  10. <configuration>
  11. <archive>
  12. <manifestEntries>
  13. <version>${project.version}</version>
  14. <sha1>${mavanagaiata.commit.sha}</sha1>
  15. <buildTimestamp>${maven.build.timestamp}</buildTimestamp>
  16. </manifestEntries>
  17. </archive>
  18. </configuration>
  19. </plugin>
  20.  
  21. .
  22. .
  23. .
  24. <plugin>
  25. <groupId>com.github.koraktor</groupId>
  26. <artifactId>mavanagaiata</artifactId>
  27. <version>0.3.2</version>
  28. <executions>
  29. <execution>
  30. <id>load-git-branch</id>
  31. <goals>
  32. <goal>commit</goal>
  33. </goals>
  34. </execution>
  35. </executions>
  36. </plugin>
  37. .
  38. .
  39. .
Add Comment
Please, Sign In to add comment