Running the same plugin multiple times in Maven

Yuri Geinish picture Yuri Geinish · Oct 28, 2010 · Viewed 14.3k times · Source

I'm using maven-minify-plugin. It can produce only one output file. I need to produce two minified js files. One from one set of files, the other from another set of files.

Can I somehow trick Maven into running two different configurations for the same plugin?

Thanks for help, Yuri.

Answer

Yuri Geinish picture Yuri Geinish · Oct 28, 2010

Turned out to be pretty easy. Use different executions, like explained here: http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag