Model (@NotNull Model result, File basedir) { try { AbstractStringBasedModelInterpolator interpolator = new CustomMaven3ModelInterpolator(new DefaultPathTranslator()); interpolator.initialize(); Properties props = MavenServerUtil.collectSystemProperties(); ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration().setExecutionProperties(props); config.setBuildStartTime(new Date()); Properties userProperties = new Properties(); userProperties.putAll(MavenServerConfigUtil.getMavenAndJvmConfigPropertiesForBaseDir(basedir)); config.setUserProperties(userProperties); result = interpolator.interpolate(result, basedir, config, false); } catch (ModelInterpolationException e) { MavenServerGlobals.getLogger().warn(e); } catch (InitializationException e) { MavenServerGlobals.getLogger().error(e); } return result; }