Overriding a provided plugin

Hey all, still new to plugin development so please correct me where needed.

Anyway here is where I'm at: Our code base uses maven with some internal caveats to define dependencies. However there are some code internally which allow the build to remove modules from the project and use a jar instead. So for example my project has modules A,B,C - I, as a developer, can say to only use module A in source mode, and modules B and C are provided as compiled jars to the compiler as well as IDEs.

When I load the project in Intellij, I need to override the native Maven plugin to exclude the modules that are not specified by the user and add a jar dependency to the modules using the dependent jar. Looking though the extension points the maven plugin has, it does not seem to provide a pivot at that low of a level.

My current thought is I would just fork the maven plugin and override what I need to (maybe eventually add some extension points and provide it to the community).

In order to do this I have some questions:

Can a plugin require another plugin to be disabled (Two project importers which can import pom.xml files sounds dangerous)?

What would the best way to pull out a platform plugin into a independent  plugin?

 

Anyway I'm still poking around the code so if anyone has any pointers let me know!

Thanks in advance! 

 

0

Please sign in to leave a comment.