File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
its/core-it-suite/src/test
resources/gh-11314-v3-mojo-injection/.mvn Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ public MavenITMissingNamespaceTest() {
3232 */
3333 @ Test
3434 public void testMissingNamespace () throws Exception {
35-
36- boolean supportSpaceInXml = matchesVersionRange("[3.1.0,)");
37-
3835 File testDir = extractResources ("/missing-namespace" );
3936 Verifier verifier = newVerifier (testDir .getAbsolutePath ());
4037 verifier .setAutoclean (false );
Original file line number Diff line number Diff line change 2929 * implementations. Specifically tests the case where a plugin needs to inject ToolchainFactory
3030 * with a named qualifier.
3131 *
32+ * This IT manually manages {@code .mvn} directories, so instructs Verifier to NOT create any.
33+ *
3234 * @see <a href="https://github.com/apache/maven-toolchains-plugin/issues/128">maven-toolchains-plugin#128</a>
3335 */
3436public class MavenITgh11314PluginInjectionTest extends AbstractMavenIntegrationTestCase {
@@ -45,6 +47,13 @@ public class MavenITgh11314PluginInjectionTest extends AbstractMavenIntegrationT
4547 public void testV3MojoWithMavenContainerInjection () throws Exception {
4648 File testDir = extractResources ("/gh-11314-v3-mojo-injection" );
4749
50+ // Before, build and install the parent POM
51+ Verifier parentVerifier = newVerifier (testDir .getAbsolutePath (), false );
52+ parentVerifier .addCliArgument ("-N" );
53+ parentVerifier .addCliArgument ("install" );
54+ parentVerifier .execute ();
55+ parentVerifier .verifyErrorFreeLog ();
56+
4857 // First, build and install the test plugin
4958 File pluginDir = new File (testDir , "plugin" );
5059 Verifier pluginVerifier = newVerifier (pluginDir .getAbsolutePath (), false );
You can’t perform that action at this time.
0 commit comments