I would like to use the assembly id as a property in a component xml file rather than duplicating a section of across multiple assemblies. Looking through the maven-assembly-plugin documentation I cannot see any reference to an assembly id. Any ideas if it is available?
Here is an example of what I would like to add to a component xml file.
<files>
<file>
<source>src/main/config/${assembly.id}.properties</source>
<destName>/conf/config.properties</destName>
</file>
</files>
You could probably use maven filtering for that:
${assembly.id}
property in the POM${assembly.id}
as <id>
in your assembly descriptor and your component descriptortarget
directory.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