Reading maven settings such as maven installation and settings file path Follow
Answered
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 ?
Please sign in to leave a comment.
call org.jetbrains.idea.maven.project.MavenProjectsManager#getGeneralSettings, then
maven home: getEffectiveMavenHome
settings file: getEffectiveUserSettingsIoFile/getEffectiveGlobalSettingsIoFile/....