void (SimpleJavaParameters params) { //it is critical to setup maven.ext.class.path for maven >=3.6, otherwise project extensions will not be loaded MavenUtil.addEventListener(myDistribution.getVersion(), params); }