package Ġcom . after verse . maven . settings Ċ Ċ import Ġjava . io . File Ċ import Ġorg . apache . maven . settings . Settings Ċ import Ġorg . apache . maven . settings . building . Default Settings BuilderFactory Ċ import Ġorg . apache . maven . settings . building . Default Settings Building Request Ċ Ċ class ĠLocal Maven Settings Loader ( private Ġval Ġextension : ĠMaven Settings Plugin Extension ) Ġ{ ĊĊĠ Ġfun Ġload Settings (): ĠSettings Ġ{ ĊĠĠĠ Ġval Ġsettings Building Request Ġ= ĠDefault Settings Building Request () ĊĠĠĠĠĠ Ġ. setUser Settings File ( extension . getUser Settings File ()) ĊĠĠĠĠĠ Ġ. set Global Settings File ( GLOBAL _ SETTINGS _ FILE ) ĊĠĠĠĠĠ Ġ. set System Properties ( System . getProperties ()) ĊĊĠĠĠ Ġreturn ĠDefault Settings BuilderFactory (). newInstance () ĊĠĠĠĠĠ Ġ. build ( settings Building Request ) ĊĠĠĠĠĠ Ġ. effective Settings ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġval ĠGLOBAL _ SETTINGS _ FILE Ġ= ĠFile ( System . getenv (" M 2 _ HOME "), Ġ" conf / settings . xml ") ĊĠ Ġ} Ċ }