List of usage examples for org.apache.maven.project.interpolation StringSearchModelInterpolator StringSearchModelInterpolator
public StringSearchModelInterpolator(PathTranslator pathTranslator)
From source file:com.greenpepper.maven.runner.CommandLineRunner.java
License:Open Source License
private void interpolateProject() throws InitializationException, Exception, ModelInterpolationException { StringSearchModelInterpolator interpolator = new StringSearchModelInterpolator(new DefaultPathTranslator()); interpolator.enableLogging(new PlexusLoggerAdapter(embedder.getLogger())); interpolator.initialize();/*from w w w .ja v a 2 s .com*/ ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration(); config.setLocalRepository(getLocalRepository()); config.setGlobalProfileManager(getProfileManager()); interpolator.interpolate(project.getModel(), project.getBasedir(), config, logger.isDebugEnabled()); }