删除 maven tycho 构建中的时间戳

问题描述

我有一个多模块 eclipse RCP 应用程序。我们正在通过 maven tycho 构建应用程序。构建成功创建。

在构建文件夹中,我有常用的插件文件夹,其中包含项目中的所有插件(jar 打包和目录打包)。

插件中包含时间戳。有什么方法可以在构建时从插件删除时间戳。目前它是 plugin.name_1.0.0.20200211.jar 但我希望插件plugin.name_1.0.0.jar

解决方法

添加格式标签对我有用。附上 Pom 文件片段。

<plugin>
  <groupId>org.eclipse.tycho</groupId>
  <artifactId>tycho-packaging-plugin</artifactId>
  <version>${tycho-version}</version>
  <configuration>
    <format>''</format>
  </configuration>
</plugin>