使用 maven-release-plugin 发布工件时,对工件版本所做的更改是本地的,不会推送到远程 git 存储库。
以下是我用于 maven-release-plugin 的配置:
<configuration>
<goals>pre-integration-test</goals>
<preparationGoals>package</preparationGoals>
<releaseProfiles>releases</releaseProfiles>
</configuration>
我做了一些研究,发现我需要添加以下依赖项maven-scm-plugin
,但不知道如何配置它以及 maven 发布插件。