-
-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to load plugin with same artifactIds/PluginIds #290
Comments
I think that the parallel loading of plugins with the same pluginId but different providers is a real usecase(e.g. having a Also, I see a problem of backwards-compatibility here - if we have a |
Maybe the simple solution in this case is to use a more complicated pattern for pluginId (a package name or groupId + artifactId). In the end is a matter of convention and application organization. Using Maven or Gradle I think that the pluginId = groupId + artifactId can be done automatically. |
You are right, there is just the benefit of having a few quality of life features, e.g.:
Of course, one could always implement something like this yourself but it would be harder because the pluginId string would have to be parsed and checked(e.g. some plugin providers only use the pluginId itself, some use |
Why the pluginId string should be parsed? In the end it's about convention/rule. For example in Java Module for module name we have |
Overview
It would be wonderful if PluginManager operations identified the plugins by (PluginId, PluginProvider, Version) so that applications can simultaneously work with plugins:
The present recommended values for plugin metadata are:
Such values make perfect sense and are easy to understand, however, with pluginId=artifactId the scenarious above do not work.
Alternatively, the default recommended value for PluginId might be changed in all examples in documentation to "groupId:artifactId:version" so that it is used by default by the users.
Workaround
Set pluginId to "groupId:artifactId:version" so that it is unique for any plugin.
See also:
The text was updated successfully, but these errors were encountered: