I'm using the maven site plugin to create and deploy a site of document开发者_运维知识库ation and resources. There are some javascript files that I would like to filter based on what profile is being used. Problem is, I can't figure out how to get the filtering to work. Has anyone come across this?
I'm using Maven 3 and my resources are all in /src/site/resources
which automagically get copied to /target/site
by the site plugin.
Thanks!
The simplest solution is to name the files you would like to filter as: filename.vm which identifies them as velocity macro files which will be filtered automatically.
精彩评论