protected DefaultTargetPlatform newDefaultTargetPlatform(MavenSession session, Map<File, ReactorProject> projects,
P2ResolutionResult result) {
DefaultTargetPlatform platform = new DefaultTargetPlatform();
platform.addSite(new File(session.getLocalRepository().getBasedir()));
platform.addNonReactorUnits(result.getNonReactorUnits());
for (P2ResolutionResult.Entry entry : result.getArtifacts()) {
ArtifactKey key = new DefaultArtifactKey(entry.getType(), entry.getId(), entry.getVersion());