IntelliJ Idea fails to pick up maven.config
The option “Use settings from .mvn/maven.config” is enabled. However IntelliJ Idea does not pick it up. CLI mvn does use the options there as expected.
The .mvn folder is located 2 levels up from the project folder (so ../../.mvn/maven.config from the project root.)
I can even trigger the maven goals from Idea successfully, but the IDE still complains about missing artifacts. (I changed the local repo through maven.config, so Idea is searching the wrong repo for artifacts and can't find them.)
Even when I put BS arguments in the maven.config, CLI mvn fails but Idea still complains about missing artifacts instead of BS arguments to mvn.
Version: 2024.3.1.1 Community, Maven 3.9.9
Temporary fixup: Move the .mvn folder to the topmost POM of the project imported. It works for Idea but this is not how the whole maven.config feature is supposed to work.
When searching for an .mvn folder, Maven checks *all* parent folders of the current one up to /. Not just the folder of the topmost POM.
请先登录再写评论。
Hello!
Thank you for reporting this!
I've reproduced the issue, created YouTrack Issue IDEA-365862 and assigned it to the R&D Team to get it addressed.
Further updates will be posted on the YouTrack.