'Toggle different formats for maven-assembly-plugin?
Is there a way to pass a parameter to your maven build to set which assembly format all declarations of the maven assembly plugin will use? We have a project with multiple maven modules which each contain their own assembly declaration, and we want to be able to choose dir-only, tar.gz or zip for all of these modules. The only way right now that I can think to do this is by declaring multiple profiles in each module each with their own maven-assembly-plugin section, duplicating a lot of the maven pom in each module. Is there some better way to handle this with inherited profiles or a global assembly format setting?
Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
