开发者

Maven template plugin?

I've looked and I can't seem to find a standalone maven plugin that one could use to generate files with Maven.

I've seen a couple of projects that look like they m开发者_StackOverflow中文版ight be going to do something like this, and I know the web start plugin uses velocity templates to generate the jnlp file. But I have not found anything that does this.

In case you're wondering why one would want this - I'd like to be able to generate Eclipse plugin.xml files as part of a PDE build.

Does anyone know of a Maven template plugin or how to generate Eclipse plugin.xml files from Maven?


I was going to create this, but someone else beat me to it but: the maven velocity plugin can generate files based on templates (using velocity of course).


Sounds like you are looking for the Maven Eclipse plugin or the Archetype plugin.

Update:

Sorry didn't pay attention to the "PDE" ... perhaps this codehaus pde-maven-plugin plugin does what you need?


For a similar use case, I've developed this Maven plugin which allows to do powerful and easy templating/filtering using Groovy's GStrings. I find it much easier to use this for a Java developer than velocity and other "templating" languages.

https://github.com/gstring-maven-plugin/gstring-maven-plugin

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜