• maven构建带版本号和日期的war包名


    21166312

    maven构建打包设置包名

    svn环境设置

    引用buildnumber插件

           <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>buildnumber-maven-plugin</artifactId>
            <version>1.2</version>
            <executions>
                <execution>
                    <phase>validate</phase>
                    <goals>
                        <goal>create</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <doCheck>false</doCheck>
                <doUpdate>false</doUpdate>
                <buildNumberPropertiesFileLocation>${project.build.directory}</buildNumberPropertiesFileLocation>
                <buildNumberPropertyName>verNum</buildNumberPropertyName>
                <timestampFormat>{0,date,yyyyMMddHHmmss}</timestampFormat>
                  <items>
                    <item>timestamp</item>
                  </items>
            </configuration>
        </plugin>
    [官网示例](http://mojo.codehaus.org/buildnumber-maven-plugin/usage.html)
    

    设置包名

        <build>
            <finalName>${project.artifactId}-${project.version}.v${verNum}-${timestamp}</finalName>
            ...
        <build>
    

    结束

    另一款类似插件 http://maven-svn-revision-number-plugin.googlecode.com/svn/site/usage.html

  • 相关阅读:
    JS实现对Date Range的认证
    SharePoint 用SafeControl的方式创建能够重复利用的Control
    设计模式详解(链接)
    Asp.net MVC3中进行自定义Error Page
    手动将自定制的WebPart部署到 SharePoint 2010 中
    获取 SharePoint 2010 中所有的User Profile Service Application
    自定义Data Service Providers — (5)最小化的运行时服务
    温总理对软件工作者的勉励
    自定义Data Service Providers —(9)关系
    自定义Data Service Providers — (7)交互式查询
  • 原文地址:https://www.cnblogs.com/juforg/p/3573664.html
Copyright © 2020-2023  润新知