MavenSession (MavenExecutionRequest request, DefaultMaven maven) { RepositorySystemSession repositorySession = maven.newRepositorySession(request); request.getProjectBuildingRequest().setRepositorySession(repositorySession); return new MavenSession(getContainer(), repositorySession, request, new DefaultMavenExecutionResult()); }