项目作者: git-commit-id

项目描述 :
Maven插件,包括构建时git存储库信息到POJO / * .properties中)。让您的应用程序告诉您它们是从哪个版本构建的!大型分布式部署无价...... :-)
高级语言: Java
项目地址: git://github.com/git-commit-id/maven-git-commit-id-plugin.git
创建时间: 2011-02-13T13:55:14Z
项目社区:https://github.com/git-commit-id/maven-git-commit-id-plugin

开源协议:GNU Lesser General Public License v3.0

下载


maven git commit id plugin

Build Status
Coverage Status
Maven Central

Exports git version info to maven as properties in the pom.xml and as a file in the build output. Code generation and resource loading enable access to the build’s version info at runtime.
Unsure if this addresses your problem? Read about common use cases.

Quick Start

The plugin is available from Maven Central. Simply add the following to your pom.xml:

  1. <plugin>
  2. <groupId>io.github.git-commit-id</groupId>
  3. <artifactId>git-commit-id-maven-plugin</artifactId>
  4. <version>9.0.1</version>
  5. <executions>
  6. <execution>
  7. <id>get-the-git-infos</id>
  8. <goals>
  9. <goal>revision</goal>
  10. </goals>
  11. <phase>initialize</phase>
  12. </execution>
  13. </executions>
  14. <configuration>
  15. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  16. <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
  17. <commitIdGenerationMode>full</commitIdGenerationMode>
  18. </configuration>
  19. </plugin>

Minimum Requirements

  • Java 11
  • Maven 3.6.3

Documentation

Maintainers

This project is currently maintained thanks to: @ktoso (founder), @TheSnoozer

Notable contributions

I’d like to give a big thanks to some of these folks, for their suggestions and / or pull requests that helped make this plugin as popular as it is today:

  • @mostr - for bugfixes and a framework to do integration testing,
  • @fredcooke - for consistent feedback and suggestions,
  • @MrOnion - for a small yet fast bugfix,
  • @cardil and @TheSnoozer - for helping with getting the native git support shipped,
  • all the other contributors (as of writing 50) which can be on the contributors tab - thanks guys,
  • … many others - thank you for your contributions,
  • … you! - for using the plugin :-)

Notable happy users

  • neo4j – graph database
  • FoundationdDB – another open source database
  • Spring Boot – yes, the upstream Spring project is using us
  • Akamai, Sabre, EasyDITA, and many many others,
  • many others I don’t know of.

License

GNU LGPL v3

I’m releasing this plugin under the GNU Lesser General Public License 3.0.

You’re free to use it as you wish, the full license text is attached in the LICENSE file.

Feature requests

The best way to ask for features / improvements is via the Issues section on GitHub - it’s better than email because I won’t loose when I have a “million emails inbox” day,
and maybe someone else has some idea or would like to upvote your issue.

That’s all folks! Happy hacking!