Resource Filtering with Maven Site Plugin
-
27-12-2020 - |
質問
I'm using the maven site plugin to create and deploy a site of documentation 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.
所属していません StackOverflow