package Ġio . project env . intellij plugin . configur ers . maven Ċ Ċ import Ġcom . intellij . openapi . application . Application Manager Ċ import Ġcom . intellij . openapi . components . service Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġio . project env . core . cli . api . Tool Info Ċ import Ġio . project env . intellij plugin . configur ers . Tool Configurer Ċ import Ġio . project env . intellij plugin . services . Execution Environment Service Ċ import Ġorg . jetbrains . idea . maven . execution . Maven Runner Ċ import Ġorg . jetbrains . idea . maven . project . Maven Projects Manager Ċ Ċ class ĠMaven Configurer ( val Ġproject : ĠProject ) Ġ: ĠTool Configurer Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Tool Identifier (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ" maven " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġconfigure Tool ( tool Info : ĠTool Info ) Ġ{ ĊĠĠĠĠĠĠĠ ĠApplication Manager . getApplication (). run Write Action Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġsettings Ġ= ĠMaven Projects Manager . getInstance ( project ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsettings . general Settings . maven Home Ġ= Ġtool Info . tool Bin aries Root . get (). canonical Path ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġuser Settings File Ġ= Ġtool Info . un handled Project Resources . get (" user Settings File ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( user Settings File Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsettings . general Settings . setUser Settings File ( user Settings File . canonical Path ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġenvironment Ġ= Ġproject . service < Execution Environment Service >(). create Environment () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMaven Runner . getInstance ( project ). settings . environment Properties . put All ( environment ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ