【问题标题】:Generate and update changelog.md after mvn release:perform在 mvn release:perform 之后生成并更新 changelog.md
【发布时间】:2020-12-10 03:11:07
【问题描述】:

我想在 mvn release:perform 完成后生成、更新 changelog.md 并提交到 Bitbucket 存储库。

在 Angular 中,它有 @semantic-release/git、@semantic-release/commit-analyzer、@semantic-release/release-notes-generator、@semantic-release/npm、@semantic-release/changelog、@语义释放/执行。 maven 版本中是否有类似的东西?

pom.xml

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>3.0.0-M1</version>
        <configuration>
           <tagNameFormat>v@{project.version}</tagNameFormat>
           <checkModificationExcludes>
             <checkModificationExclude>pom.xml</checkModificationExclude>
           </checkModificationExcludes>
        </configuration>
     </plugin>
   </plugins>
</build>

<distributionManagement>
  <repository>
    <id>release</id>
    <url>https://nexus.../.../release/</url>
  </repository>
</distributionManagement>

<properties>
  <project.scm.id>my-scm-server</project.scm.id>
</properties>

<scm>
  <connection>scm:git:https://user@bitbucket.org/user/comutils.git</connection>
  <developerConnection>scm:git:https://user@bitbucket.org/user/comutils.git</developerConnection>
  <tag>HEAD</tag>
</scm>

【问题讨论】:

    标签: maven maven-plugin maven-release-plugin


    【解决方案1】:

    您可以使用maven-semantic-release,它将使用 Angular 样式的提交消息为 Maven 项目生成发行说明,就像您对 npm 项目所做的那样。

    文档建议如何发布到 Maven Central,但您可以通过 publishing to Github packages 省去一些麻烦。

    【讨论】:

      猜你喜欢
      • 2016-03-25
      • 1970-01-01
      • 2012-08-27
      • 1970-01-01
      • 2021-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-29
      相关资源
      最近更新 更多