Vasilii Ruzov
Vasilii Ruzov

Reputation: 554

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.

Upvotes: 1

Views: 2221

Answers (1)

Riduidel
Riduidel

Reputation: 22300

The velocity-maven-plugin do a great job at allowing you to run your Velocity templates during build.

Upvotes: 0

Related Questions