【问题标题】:How do I get maven to "stamp" a build number into a properties file如何让 Maven 将内部版本号“标记”到属性文件中
【发布时间】:2008-09-23 11:01:31
【问题描述】:

作为 maven 构建的一部分,我希望能够在属性文件/类中设置构建号(并不重要)(这样我就可以在 UI 中显示它)。有任何想法吗?

【问题讨论】:

    标签: maven-2


    【解决方案1】:

    我们使用了 Codehaus 现在提供的 Build Number Plugin。它可以生成一个连续的内部版本号或允许您使用时间戳。

    【讨论】:

      【解决方案2】:

      Maven build number plugin 应该做你想做的事。

      【讨论】:

        【解决方案3】:

        我使用 maven-property-plugin 将 CruiseControl 构建标签存储在属性文件中(构建标签可用作名为“标签”的系统属性)。

        A post 了解如何与 Hudson 合作。

        【讨论】:

          猜你喜欢
          • 2011-10-20
          • 2012-01-22
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2018-07-16
          • 2012-04-08
          • 2011-04-01
          • 1970-01-01
          相关资源
          最近更新 更多