MavenModel (MavenModel model, File basedir, File pomDir) { Model nativeModel = Maven40ModelConverter.toNativeModel(model); DefaultPathTranslator pathTranslator = new DefaultPathTranslator(); DefaultUrlNormalizer urlNormalizer = new DefaultUrlNormalizer(); DefaultRootLocator rootLocator = new DefaultRootLocator(); StringVisitorModelInterpolator interpolator = new StringVisitorModelInterpolator(pathTranslator, urlNormalizer, rootLocator); Model result = doInterpolate(interpolator, nativeModel, basedir); MyDefaultPathTranslator myPathTranslator = new MyDefaultPathTranslator(pathTranslator); myPathTranslator.alignToBaseDirectory(result, pomDir); return Maven40ModelConverter.convertModel(result); }