Reading maven settings such as maven installation and settings file path

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 ?

1 comment
Comment actions Permalink

call org.jetbrains.idea.maven.project.MavenProjectsManager#getGeneralSettings, then

maven home: getEffectiveMavenHome

settings file: getEffectiveUserSettingsIoFile/getEffectiveGlobalSettingsIoFile/....

0

Please sign in to leave a comment.