Skip to content
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

Register the maven protocol handler as a DS component #1465

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Jul 4, 2023

FYI @merks this will make the protocol available as soon as possible even if m2e is currently not activated by other means.

@laeubi
Copy link
Member Author

laeubi commented Jul 4, 2023

This currently references IMaven as a service to circumvent:

if that is fixed, we should switch back to using IMaven maven = MavenPlugin.getMaven(); to allow the component being activated without any prerequisites.

@laeubi laeubi force-pushed the migrate_streamhandler_to_ds branch 2 times, most recently from b632cef to 1f06487 Compare July 4, 2023 05:59
@laeubi
Copy link
Member Author

laeubi commented Jul 4, 2023

@mickaelistria in commit 0fc9523 you reverted registering this with ECF do you remember what was the problem back there?

@github-actions
Copy link

github-actions bot commented Jul 4, 2023

Test Results

106 files  ±0  106 suites  ±0   9m 33s ⏱️ +2s
657 tests ±0  647 ✔️ ±0  10 💤 ±0  0 ±0 
657 runs  ±0  646 ✔️ ±0  11 💤 ±0  0 ±0 

Results for commit 084a3e2. ± Comparison against base commit 060eba3.

♻️ This comment has been updated with latest results.

@laeubi laeubi force-pushed the migrate_streamhandler_to_ds branch from 1f06487 to 084a3e2 Compare July 4, 2023 06:36
@mickaelistria
Copy link
Contributor

@laeubi yes, it was failing because there was a circular dependency at exec between ECF (loading m2e extension) and m2e (loading ECF) and this was causing failures to startup m2e. But with DS, since the service are more lazily resolved, it could be fine.

@laeubi
Copy link
Member Author

laeubi commented Jul 4, 2023

I have tried searching the code but can't find that m2e is using ECF anywhere do you have a pointer where the dependency to ECF originates?

@mickaelistria
Copy link
Contributor

The dependency was probably originating from the addition of the protocol handler itself. I don't remember the details, but I remember that I thought that something lazier could probably solve it.

@laeubi
Copy link
Member Author

laeubi commented Jul 4, 2023

Alright, I'll maybe try to debug this, actually the extension registry should also allow to use it lazy so maybe something to improve for ECF...

@laeubi
Copy link
Member Author

laeubi commented Jul 4, 2023

@mickaelistria I have now debugged this a bit and it seems all ECF does is actually register the extension point as a service, so this seems redundant here them, but it could be more lazy anyways I'll open a PR.

@laeubi
Copy link
Member Author

laeubi commented Jul 4, 2023

@laeubi laeubi merged commit 2294d62 into eclipse-m2e:master Jul 4, 2023
6 of 7 checks passed
@laeubi
Copy link
Member Author

laeubi commented Jul 4, 2023

I also discovered one problem with ECF and custom handlers, created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants