use of org.jetbrains.idea.maven.execution.SoutMavenConsole in project intellij-community by JetBrains.
the class MavenServerEmbedderTest method _testExecutionGoals.
public void _testExecutionGoals() throws Exception {
createProjectSubFile("src/main/java/A.java", "public class A {}");
createProjectPom("<groupId>test</groupId>" + "<artifactId>project</artifactId>" + "<version>1</version>");
myEmbedder.customizeForResolve(new SoutMavenConsole(), EMPTY_MAVEN_PROCESS);
MavenServerExecutionResult result = myEmbedder.execute(myProjectPom, Collections.<String>emptyList(), Collections.<String>emptyList(), Arrays.asList("compile"));
assertNotNull(result.projectData);
assertNotNull(new File(getProjectPath(), "target").exists());
assertOrderedElementsAreEqual(result.unresolvedArtifacts);
MavenModel project = result.projectData.mavenModel;
assertNotNull(project);
assertEquals("project", project.getMavenId().getArtifactId());
}
Aggregations