Question

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!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top