Maven 4-rc-4 breaks IntelliJ IDEA
Affected version
4.0.0-rc-4
Bug description
When using maven wrapper in a project with IntelliJ, the following appears when trying to "load" or "sync" project with maven inside IntelliJ. This breaks pretty much all functionality in the Java project within IntelliJ:
java.lang.NoSuchMethodError: 'void org.apache.maven.cling.invoker.mvn.resident.ResidentMavenInvoker.<init>(org.apache.maven.api.services.Lookup)'
Caused by https://github.com/apache/maven/commit/ddc228e958b4b7bfa93d080943d8a17268c4c512#diff-45a55c3ed6149aae9068fbf5a8cc3ce8a229d27a96ecfaf900922959afe53454
@cstamas it's only called by test inside maven with a null argument. I suppose mvnd does use it. Maybe we should add the previous constructor back ?
IDEA supports Maven 4 in 2025.2 branch. Please, give 2025.2 Beta a try: https://www.jetbrains.com/idea/nextversion/