I have a project that creates a generic package which is then used in
several other nearly identical sibling projects. These projects pull this
"client-generic" package in as a dependency and create an almost identical
package other than the difference in these configuration files. This
looks like this where the client-generic is the dependency brought into
each of the other final client projects:
client
...client-generic
...client1
...client2
...client3
These clientx projects have some completely different files in them. I use
the maven assembly plugin to bring these new files in. However, the
clientx projects also have several configuration files that are identical
other than a property. For instance, there is one configuration file which
is identical in all of them except for an "IPAddress" property.
Ideally, I would like to avoid duplicating this file in every clientx
project and instead put this configuration file in the client-generic
project with a property set:
<value>${IPAddress}</value>
Then I would like for each clientx project to set the property accordingly.
I am using the maven-dependency-plugin unpack goal to unpack the
"client-generic" dependency into these other projects. Is there a way to
apply resource filtering for the unpack goal so I can filter this property
on the configuration file that is in the dependency?
thanks