private static void setupContainer(PlexusContainer c) { MavenEmbedder.setImplementation(c, ArtifactFactory.class, CustomArtifactFactory.class); MavenEmbedder.setImplementation(c, ProjectArtifactFactory.class, CustomArtifactFactory.class); MavenEmbedder.setImplementation(c, ArtifactResolver.class, CustomArtifactResolver.class); MavenEmbedder.setImplementation(c, RepositoryMetadataManager.class, CustomRepositoryMetadataManager.class); MavenEmbedder.setImplementation(c, WagonManager.class, CustomWagonManager.class); MavenEmbedder.setImplementation(c, ModelInterpolator.class, CustomModelInterpolator.class); }