Java Code Examples for org.apache.maven.it.Verifier#setMavenDebug()
The following examples show how to use
org.apache.maven.it.Verifier#setMavenDebug() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: YangToSourcesPluginTestIT.java From yangtools with Eclipse Public License 1.0 | 6 votes |
static Verifier setUp(final String project, final boolean ignoreF) throws VerificationException, URISyntaxException, IOException { final URL path = YangToSourcesPluginTestIT.class.getResource("/" + project + "pom.xml"); final Verifier verifier = new Verifier(new File(path.toURI()).getParent()); if (ignoreF) { verifier.addCliOption("-fn"); } final Optional<String> maybeSettings = getEffectiveSettingsXML(); if (maybeSettings.isPresent()) { verifier.addCliOption("-gs"); verifier.addCliOption(maybeSettings.get()); } verifier.setMavenDebug(true); verifier.executeGoal("generate-sources"); return verifier; }
Example 2
Source File: SetupIT.java From vertx-maven-plugin with Apache License 2.0 | 5 votes |
private void initVerifier(File root) throws VerificationException { verifier = new Verifier(root.getAbsolutePath()); verifier.setAutoclean(false); verifier.setDebug(true); verifier.setForkJvm(true); verifier.setMavenDebug(true); installPluginToLocalRepository(verifier.getLocalRepository()); }
Example 3
Source File: SetupIT.java From vertx-maven-plugin with Apache License 2.0 | 5 votes |
private void initVerifier(File root) throws VerificationException { verifier = new Verifier(root.getAbsolutePath()); verifier.setAutoclean(false); verifier.setDebug(true); verifier.setForkJvm(true); verifier.setMavenDebug(true); installPluginToLocalRepository(verifier.getLocalRepository()); }
Example 4
Source File: MavenVerifierUtil.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
public static Verifier newVerifier(String pathToTestProject) throws IOException, VerificationException { File testDir = ResourceExtractor.simpleExtractResources(MavenVerifierUtil.class, pathToTestProject); Verifier verifier = new Verifier(testDir.getAbsolutePath()); System.out.println("gradle: " + System.getProperty("gradleMavenRepo")); for (Object iterable_element : System.getProperties().keySet()) { System.out.println(iterable_element + "=" + System.getProperty(iterable_element.toString())); } String gradleMavenRepo = System.getProperty("gradleMavenRepo"); Assert.assertNotNull("gradleMavenRepo is null", gradleMavenRepo); verifier.setSystemProperty("gradleMavenRepo", gradleMavenRepo); verifier.setSystemProperty("nonTestMavenRepo", System.getProperty("maven.repo.local")); verifier.setSystemProperty("WORKSPACE", System.getProperty("WORKSPACE")); String testMavenRepo = System.getProperty("testMavenRepo"); Assert.assertNotNull("testMavenRepo is null", testMavenRepo); verifier.setLocalRepo(testMavenRepo); verifier.setDebug(true); String testSettingsXML = System.getProperty("testSettingsXML"); if (testSettingsXML != null) { verifier.addCliOption("-s"); verifier.addCliOption(testSettingsXML); } verifier.addCliOption("-U"); verifier.setMavenDebug(true); // verifier.setDebugJvm(true); // verifier.setForkJvm(false); return verifier; }
Example 5
Source File: XtendCompilerMojoTraceIT.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
private Verifier verifyErrorFreeLog(String pathToTestProject, String goal) throws IOException, VerificationException { Verifier verifier = newVerifier(pathToTestProject, debug); verifier.setMavenDebug(debug); verifier.executeGoal(goal); verifier.verifyErrorFreeLog(); verifier.setDebug(true); verifier.resetStreams(); return verifier; }
Example 6
Source File: DownstreamParentTest.java From brooklyn-library with Apache License 2.0 | 5 votes |
/** * Asserts that a trivial project using brooklyn-downstream-parent can be * loaded into Brooklyn's catalogue and its entities deployed. */ @Test(groups = "Integration") public void testDownstreamProjectsCanBeLoadedIntoBrooklynCatalogByDefault() throws Exception { int port = Networking.nextAvailablePort(57000); File dir = getBasedir("downstream-parent-test"); Verifier verifier = new Verifier(dir.getAbsolutePath()); verifier.setMavenDebug(true); verifier.executeGoal("post-integration-test", ImmutableMap.of( "bindPort", String.valueOf(port))); verifier.verifyErrorFreeLog(); verifier.verifyTextInLog("Hello from the init method of the HelloEntity"); }