-
Notifications
You must be signed in to change notification settings - Fork 564
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
4.x: Pico maven plugin combines its own classpath with application #7083
Comments
This might be harder than it looks, and will likely get us into the "classloader magic" realm. At first glance, I tried the obvious:
but this yielded type loader conflicts from config as shown:
It seems clear that both the In
|
Is there maybe a way to find out that the discovered service is already handled by another module that is not the currently processed module (that would be sufficient, and would resolve all such cases). |
As the plugin uses service registry and adds helidon-config to the classpath, the registry discovers service that is provided by config.
This may create invalid descriptors for processed applications, as these may not depend on helidon-config at all.
The maven plugin should only use classpath of the application (and not its own classpath) to discover "stuff".
I have worked around this by adding appropriate dependencies to the libraries impacted (oci integration test, pico resource test), and by modified tests in pico resources that expect a certain list of initialized services, but now get more
The text was updated successfully, but these errors were encountered: