Example usage for org.apache.maven.project.interpolation StringSearchModelInterpolator StringSearchModelInterpolator

List of usage examples for org.apache.maven.project.interpolation StringSearchModelInterpolator StringSearchModelInterpolator

Introduction

In this page you can find the example usage for org.apache.maven.project.interpolation StringSearchModelInterpolator StringSearchModelInterpolator.

Prototype

public StringSearchModelInterpolator(PathTranslator pathTranslator) 

Source Link

Usage

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());
}