Example usage for org.apache.maven.project ProjectBuilderConfiguration setGlobalProfileManager

List of usage examples for org.apache.maven.project ProjectBuilderConfiguration setGlobalProfileManager

Introduction

In this page you can find the example usage for org.apache.maven.project ProjectBuilderConfiguration setGlobalProfileManager.

Prototype

ProjectBuilderConfiguration setGlobalProfileManager(ProfileManager globalProfileManager);

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.  j a v  a2  s  .  c  om*/
    ProjectBuilderConfiguration config = new DefaultProjectBuilderConfiguration();
    config.setLocalRepository(getLocalRepository());
    config.setGlobalProfileManager(getProfileManager());
    interpolator.interpolate(project.getModel(), project.getBasedir(), config, logger.isDebugEnabled());
}