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.
Almost any action that you can think of performing on a project is implemented as a Maven plugin. Plugins are the central feature of Maven that allow for the reuse of common build logic across multiple projects.
Plugin executions are ordered according to their phases. See https://maven.apache.org/ref/current/maven-core/lifecycles.html for the order of phases. For example, here mavin-plugin-1 is executed before maven-plugin-2 because the process-resources phase is defined as taking place before the compile phase.
plugins for prefix-to-artifactId mappings for the plugins it needs to perform a given build. However, as previously mentioned, the user may have a need for third-party plugins.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With