简体   繁体   中英

Generate file by template using maven

I have a directory that contains several children-directories. These directories are being generated by maven assembly plugin. I want to generate the .properties file that contains smth like

module1.home=${.dir}/module1
module2.home=${.dir}/module2

and so on. So I want 1 line for each child-directory. I have a velocity template that describes content of the file. Which plugin can do it for me? Thanks a lot.

velocity-maven-plugin在允许您在构建过程中运行Velocity模板方面做得很好。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM