Repository repository = new Repository();
repository.setId( "central" );
repository.setUrl( getRemoteRepositoryURL() );
ProfileManager profileManager = new DefaultProfileManager( getContainer() );
Profile profile = new Profile();
profile.setId( "profile" );
profile.addRepository( repository );
profileManager.addProfile( profile );
profileManager.activateAsDefault( profile.getId() );
List<MavenProject> reactorProjects = new ArrayList<MavenProject>();
while ( !projectFiles.isEmpty() )
{
File file = (File) projectFiles.pop();