I need to display build number in my index.jsp page
Title (build: B
Warning: Resources filtering does not work this way for .jsp files. As Pascal Thivent pointed out (thank you) an index.jsp is not a resource but belongs to the webapp.
I do not know the exact answer to your question but you could hard-code the buildnumber into the index.jsp file with maven directly when the index.jsp file is copied to the target directory. You only would need to insert a variable into the index.jsp and configure the maven-resource-plugin to enable filtering.
Example:
index.jsp
Title (build: ${buildNumber} )
Maven Configuration (extract from pom.xml)
src/main/resources
true
org.codehaus.mojo
buildnumber-maven-plugin
validate
create
false
false
For more information on filtering have a look at the Maven Filtering Manual