// TODO this reference to the M2_REPO should probably be centralized
MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest();
lookup(MavenExecutionRequestPopulator.class).populateFromSettings(executionRequest, getSettings());
request = executionRequest.getProjectBuildingRequest();
ArtifactRepository localRepository = new MavenArtifactRepository(
"local", new File(settings.getLocalRepository()).toURI().toURL().toString(),
getContainer().lookup(ArtifactRepositoryLayout.class),
new ArtifactRepositoryPolicy(true, ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,
ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN),
new ArtifactRepositoryPolicy(true, ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,