I need to display build number in my index.jsp page
Title (build: B
Here's how I've done it, using maven + jstl and leaving out Spring as it just makes it more complicated.
build.jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
Build info
Build time:
Build number:
${buildNumber}
Branch:
${scmBranch}
Maven pom
org.codehaus.mojo
buildnumber-maven-plugin
1.1
validate
create
{0,date,yyDHHmm}
- timestamp
{0,date,yyDHHmm}
- timestamp
org.apache.maven.plugins
maven-war-plugin
src/main/webapp/
build.jsp
true
.
More details about the usage of buildnumber-maven-plugin can be found on the usage page.