Reputation: 7332
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>
Upvotes: 6
Views: 1993
Reputation: 5265
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.Upvotes: 2