diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java b/its/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java index 8f3f160f93..089b4d1e1c 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/IntegrationTestSuite.java @@ -106,6 +106,7 @@ public class IntegrationTestSuite // Tests that don't run stable and need to be fixed // ------------------------------------------------------------------------------------------------------------- // suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137 + suite.addTestSuite( MavenITmng7474SessionScopeTest.class ); suite.addTestSuite( MavenITmng7529VersionRangeRepositorySelection.class ); suite.addTestSuite( MavenITmng7443ConsistencyOfOptionalProjectsAndProfilesTest.class ); suite.addTestSuite( MavenITmng7353CliGoalInvocationTest.class ); diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7474SessionScopeTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7474SessionScopeTest.java index 018681261d..7619a30288 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7474SessionScopeTest.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7474SessionScopeTest.java @@ -40,7 +40,12 @@ public class MavenITmng7474SessionScopeTest { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-7474-session-scope" ); - Verifier verifier = newVerifier( testDir.getAbsolutePath() ); + Verifier verifier = newVerifier( new File( testDir, "plugin" ).getAbsolutePath() ); + verifier.executeGoal( "install" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + + verifier = newVerifier( new File( testDir, "project" ).getAbsolutePath() ); verifier.executeGoal( "validate" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); diff --git a/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/pom.xml b/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/pom.xml index a51b8951b0..f37a47ab6f 100644 --- a/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/pom.xml +++ b/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/pom.xml @@ -1,12 +1,7 @@ 4.0.0 - - org.apache.maven.its.mng7474 - parent - 1.0-SNAPSHOT - - + org.apache.maven.its.mng7474 plugin 1.0-SNAPSHOT maven-plugin @@ -14,7 +9,7 @@ 1.7 1.7 - 3.1.1 + 3.2.5 @@ -23,6 +18,12 @@ javax.inject 1 + + org.apache.maven + maven-core + ${maven-version} + provided + org.apache.maven.plugin-tools maven-plugin-annotations diff --git a/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/src/main/java/org/apache/maven/its/mng7474/TestComponent.java b/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/src/main/java/org/apache/maven/its/mng7474/TestComponent.java index 7bc17dd910..d6d8eef9e1 100644 --- a/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/src/main/java/org/apache/maven/its/mng7474/TestComponent.java +++ b/its/core-it-suite/src/test/resources/mng-7474-session-scope/plugin/src/main/java/org/apache/maven/its/mng7474/TestComponent.java @@ -19,12 +19,13 @@ package org.apache.maven.its.mng7474; * under the License. */ -import javax.enterprise.context.SessionScoped; import javax.inject.Named; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; +import org.apache.maven.SessionScoped; + @SessionScoped @Named public class TestComponent diff --git a/its/core-it-suite/src/test/resources/mng-7474-session-scope/pom.xml b/its/core-it-suite/src/test/resources/mng-7474-session-scope/project/pom.xml similarity index 94% rename from its/core-it-suite/src/test/resources/mng-7474-session-scope/pom.xml rename to its/core-it-suite/src/test/resources/mng-7474-session-scope/project/pom.xml index 6f8add86e4..3ab320e906 100644 --- a/its/core-it-suite/src/test/resources/mng-7474-session-scope/pom.xml +++ b/its/core-it-suite/src/test/resources/mng-7474-session-scope/project/pom.xml @@ -7,7 +7,6 @@ pom - plugin project-a project-b diff --git a/its/core-it-suite/src/test/resources/mng-7474-session-scope/project-a/pom.xml b/its/core-it-suite/src/test/resources/mng-7474-session-scope/project/project-a/pom.xml similarity index 100% rename from its/core-it-suite/src/test/resources/mng-7474-session-scope/project-a/pom.xml rename to its/core-it-suite/src/test/resources/mng-7474-session-scope/project/project-a/pom.xml diff --git a/its/core-it-suite/src/test/resources/mng-7474-session-scope/project-b/pom.xml b/its/core-it-suite/src/test/resources/mng-7474-session-scope/project/project-b/pom.xml similarity index 100% rename from its/core-it-suite/src/test/resources/mng-7474-session-scope/project-b/pom.xml rename to its/core-it-suite/src/test/resources/mng-7474-session-scope/project/project-b/pom.xml