cost 60 ms
如何在Maven项目的清单中的Implementation-Version字段中获取git SHA1值? - How to get the git SHA1 value in the Implementation-Version field in the manifest for a Maven project?

我们使用git和maven以及logback。 这意味着日志中的堆栈跟踪显示了包含堆栈跟踪中每一行的jar的实现版本(有关示例,请参阅http://logback.qos.ch/reasonsToSwitch.html#packagingData )。 因此,如果我们可以将当前构建的 ...

是否有一个Git命令来获取当前标记,分支和提交? - Is there a single Git command to get the current tag, branch and commit?

我目前正在使用三个命令的集合来获取当前标记,分支以及最近提交的日期和SHA1。 这将输出如下内容: 说实话,我对此完全没问题。 但是我正在使用Maven的这些命令以及之前使用过Maven的任何人,知道外部命令会让POM膨胀多少。 我只想减少我的pom.xml,可能会减少执行时 ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM