SVN revision number and timestamp

元气小坏坏 提交于 2019-12-04 09:11:15

I'm using like this now:

<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>
    <format>{0} - {1,date,yyyy-MM-dd HH:mm:ss}</format>
    <items>
        <item>scmVersion</item>
        <item>timestamp</item>
    </items>
</configuration>

And access the value from jsp like this:

${initParam['build']}

This shows the SVN revision number first and then the timestamp.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!