开发者

Resource Filtering with Maven Site Plugin

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜