List of usage examples for org.apache.maven.project ProjectBuilderConfiguration setGlobalProfileManager
ProjectBuilderConfiguration setGlobalProfileManager(ProfileManager globalProfileManager);
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()); }