I have a build where I need to apply overrides to a dependency.  What I'd
like the build to do is grab the existing dependency, add the overrides, and
reuse the same dependency with a different/version (same groupId &
artifactId).  This way in my top level pom's dependency management section I
could just specify that all modules (except the one creating the override
version) must use the new modified version.

But how can I do this because then the module applying the overrides would
want to start with the new version too.

What I'm thinking might work is either:

1. A bootstrapping module/plugin where I can apply the overrides first
before the rest of the build really starts.

2. A plugin that can inject the new artifact into the build in such a way
that other dependent modules can specify if they want to use the
old/previous version or the new one.

Is anything like this possible?

Reply via email to