插件GitHub地址:https://github.com/git-commit-id/maven-git-commit-id-plugin git-commit-id-plugin 是一个类似于 buildnumber-maven-plugin 的插件,由于buildnumber-maven-plugin插件仅支持 CVS 和 SVN,所以作者就开发了一个支持Git版。这个插件主要有以下几个功能: 明确部署的版本 校验属性是否符合预期值 一、...
告诉maven git commit id将git属性注入到所有reactor项目中,而不仅仅是现在的那个。默认情况下,属性设置为“false”,以防止重写可能与项目无关的属性。如果需要公开git属性对于另一个maven模块(例如maven antrun plugin),您需要将其设置为“true”。 --> <injectAllReactorProjects>false</injectAllReactorProjects> <...
【2月更文挑战第1天】git-commit-id-maven-plugin 是一个maven 插件,用来在打包的时候将git-commit 信息打进jar中。这样做的好处是可以将发布的某版本和对应的代码关联起来,方便查阅和线上项目的维护。至于它的作用,用官方说法,这个功能对于大型分布式项目来说是无价的
笔者甚至在github上找到了这样一个demomygitcommitiplanet思路是: 1)把maven-git-commit-id-plugin运行所产生的git.properties文件的内容修改为json形式。 2)通过“/version” 的接口对外提供查询服务。 后续,甚至都可以通过这个接口来检查线上系统的版本和cmdb中版本的一致性,或者做系统的健康性巡检(ping)。果然只有...
使用Maven git-commit-id插件,版本信息可以随时检索并始终保持最新,无需每次都手动去修改版本信息。 插件目标、参数 git-commit-id:revision:将构建时的信息保存到指定文件中或maven的属性中,默认绑定生命周期的阶段(phase):initialize git-commit-id:validateRevision:校验属性是否符合预期值,默认绑定阶段...
A maven plugin which includes build-time git repository information into an java bean (or just plain properties). Make your apps tell you which version exactly they were built from! Priceless in large distributed deployments... :-) - darabi/maven-git-com
<version>1.0.0</version> <packaging>pom</packaging> <modules> <module>first</module> </modules> <properties> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> ...
This plugin makes basic repository information available through maven resources. This can be used to display "what version is this?" or "who has deployed this and when, from which branch?" information at runtime, making it easy to find things like "oh, that isn't deployed yet, I'll ...
针对你遇到的错误“failed to execute goal pl.project13.maven”,我可以提供以下分析和解决步骤: 确认错误消息来源和上下文: 这个错误通常是在Maven构建过程中出现的,表示git-commit-id-plugin插件执行失败。需要查看完整的Maven构建日志以获取更多错误细节。 检查pom.xml文件中git-commit-id-plugin的配置: 确保你...
mirrors_git-commit-id/git-commit-id-maven-plugin 代码 Wiki 统计 流水线 服务 加入Gitee 与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) 免费加入 已有帐号? 立即登录 文件 master 分支(9) 标签(58) 管理 管理 master dependabot/maven/com.puppycrawl.tools-chec...