@Test public void testCustomSettingSource() { try { final MavenRequest mavenRequest = createMavenRequest(new SettingsSourceMock( "<settings/>" ) ); final MavenEmbedder embedder = new MavenEmbedderWithRepoMock( mavenRequest ); final MavenExecutionRequest request = embedder.getMavenExecutionRequest(); assertNotNull( request ); Assert.assertEquals( "<settings/>", readFileAsString( request.getUserSettingsFile() ).trim() ); } catch ( MavenEmbedderException mee ) { fail( mee.getMessage() ); } }
public MavenExecutionRequest getMavenExecutionRequest() { return mavenExecutionRequest; }
MavenEmbedder { public MavenExecutionRequest getMavenExecutionRequest() { return mavenExecutionRequest; } }
MavenEmbedder { public MavenExecutionRequest getMavenExecutionRequest() { return mavenExecutionRequest; } MavenEmbedder( MavenRequest mavenRequest );  MavenEmbedder( ClassLoader mavenClassLoader,
                          ClassLoader parent,
                          MavenRequest mavenRequest ); protected  MavenEmbedder( MavenRequest mavenRequest,
                             ComponentProvider componentProvider ); }
MavenEmbedder { public MavenExecutionRequest getMavenExecutionRequest() { return mavenExecutionRequest; } MavenEmbedder( MavenRequest mavenRequest );  MavenEmbedder( ClassLoader mavenClassLoader,
                          ClassLoader parent,
                          MavenRequest mavenRequest ); protected  MavenEmbedder( MavenRequest mavenRequest,
                             ComponentProvider componentProvider ); Settings getSettings(); ArtifactRepository getLocalRepository(); String getLocalRepositoryPath(); MavenProject readProject( final InputStream mavenProjectStream ); MavenProject readProject( File mavenProject ); List<MavenProject> readProjects( File mavenProject,
                                            boolean recursive ); List<ProjectBuildingResult> buildProjects( File mavenProject,
                                                      boolean recursive ); MavenSession getMavenSession(); MavenExecutionRequest getMavenExecutionRequest(); void dispose(); MavenExecutionResult execute( final MavenRequest mavenRequest ); }
MavenEmbedder { public MavenExecutionRequest getMavenExecutionRequest() { return mavenExecutionRequest; } MavenEmbedder( MavenRequest mavenRequest );  MavenEmbedder( ClassLoader mavenClassLoader,
                          ClassLoader parent,
                          MavenRequest mavenRequest ); protected  MavenEmbedder( MavenRequest mavenRequest,
                             ComponentProvider componentProvider ); Settings getSettings(); ArtifactRepository getLocalRepository(); String getLocalRepositoryPath(); MavenProject readProject( final InputStream mavenProjectStream ); MavenProject readProject( File mavenProject ); List<MavenProject> readProjects( File mavenProject,
                                            boolean recursive ); List<ProjectBuildingResult> buildProjects( File mavenProject,
                                                      boolean recursive ); MavenSession getMavenSession(); MavenExecutionRequest getMavenExecutionRequest(); void dispose(); MavenExecutionResult execute( final MavenRequest mavenRequest ); static final File DEFAULT_GLOBAL_SETTINGS_FILE; }