Reading maven command line args
I want to take a build number passed as an argument when running maven and inject it into some HTML files.
To give an example: Build command would be "mvn -DBUILdNUM=1"
I would like to take 开发者_运维问答this and inject it into an html file (in a comment hopefully) replacing something like ${builnum}.
I would also like to use something similar for cache busting my js scripts.
You can use Maven Resource Filtering for this.
精彩评论