开发者

Resource Filtering with Maven Site Plugin

开发者 https://www.devze.com 2023-03-29 15:55 出处:网络
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

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

精彩评论

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