Reading maven settings such as maven installation and settings file path
已回答
I'm developing a plugin which i need to read the current maven configuration of the project. I want to read the maven installation directory of the maven bundle in used and the user settings file path that is set in maven settings. How do i access this information through the Intellij Plugin APIs ?
请先登录再写评论。
call org.jetbrains.idea.maven.project.MavenProjectsManager#getGeneralSettings, then
maven home: getEffectiveMavenHome
settings file: getEffectiveUserSettingsIoFile/getEffectiveGlobalSettingsIoFile/....