I am doing some work with Maven Extensions which is dynamically modifying the version of a project before the build lifecycle begins.
The issue i am having is with the IntelliJ Maven Importer which seems to be using the bundled version of Maven (3.0.5) and so it doesn't generate the IntelliJ .idea & .iml files correctly and when the project is imported it shows up in a large amount of errors and red.
I have updated the IntelliJ Settings (Settings > Build, Execution, Deployment > Build Tools > Maven > Maven Home Directory) so that i am using a later version of Maven (3.3.9), but the importer doesn't appear to be using this.
After some hacking i have found that updating the bundled version of maven in the plugins\maven\lib\maven3 section of the installation to Maven 3.3.9 makes the importer work and the project is imported without any issues.
My main question is there an easier way to make the Maven importer use the specified version of Maven and not the bundled version?
I specifically need Maven (3.3.1 or above) because that is when the project specific extensions feature was included.
Either that or some info on when the bundled version of Maven will be upgraded would also be good. As my hacking approach can't be rolled out to the other users of this feature that is being developed and this may be a bit of a blocker.