File tree Expand file tree Collapse file tree 7 files changed +17
-10
lines changed
resources/mng-7474-session-scope
src/main/java/org/apache/maven/its/mng7474 Expand file tree Collapse file tree 7 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ public static Test suite()
106106 // Tests that don't run stable and need to be fixed
107107 // -------------------------------------------------------------------------------------------------------------
108108 // suite.addTestSuite( MavenIT0108SnapshotUpdateTest.class ); -- MNG-3137
109+ suite .addTestSuite ( MavenITmng7474SessionScopeTest .class );
109110 suite .addTestSuite ( MavenITmng7529VersionRangeRepositorySelection .class );
110111 suite .addTestSuite ( MavenITmng7443ConsistencyOfOptionalProjectsAndProfilesTest .class );
111112 suite .addTestSuite ( MavenITmng7353CliGoalInvocationTest .class );
Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ public void testSessionScope()
4040 {
4141 File testDir = ResourceExtractor .simpleExtractResources ( getClass (), "/mng-7474-session-scope" );
4242
43- Verifier verifier = newVerifier ( testDir .getAbsolutePath () );
43+ Verifier verifier = newVerifier ( new File ( testDir , "plugin" ).getAbsolutePath () );
44+ verifier .executeGoal ( "install" );
45+ verifier .verifyErrorFreeLog ();
46+ verifier .resetStreams ();
47+
48+ verifier = newVerifier ( new File ( testDir , "project" ).getAbsolutePath () );
4449 verifier .executeGoal ( "validate" );
4550 verifier .verifyErrorFreeLog ();
4651 verifier .resetStreams ();
Original file line number Diff line number Diff line change 11<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
22 <modelVersion >4.0.0</modelVersion >
33
4- <parent >
5- <groupId >org.apache.maven.its.mng7474</groupId >
6- <artifactId >parent</artifactId >
7- <version >1.0-SNAPSHOT</version >
8- </parent >
9-
4+ <groupId >org.apache.maven.its.mng7474</groupId >
105 <artifactId >plugin</artifactId >
116 <version >1.0-SNAPSHOT</version >
127 <packaging >maven-plugin</packaging >
138
149 <properties >
1510 <maven .compiler.source>1.7</maven .compiler.source>
1611 <maven .compiler.target>1.7</maven .compiler.target>
17- <maven-version >3.1.1 </maven-version >
12+ <maven-version >3.2.5 </maven-version >
1813 </properties >
1914
2015 <dependencies >
2318 <artifactId >javax.inject</artifactId >
2419 <version >1</version >
2520 </dependency >
21+ <dependency >
22+ <groupId >org.apache.maven</groupId >
23+ <artifactId >maven-core</artifactId >
24+ <version >${maven-version} </version >
25+ <scope >provided</scope >
26+ </dependency >
2627 <dependency >
2728 <groupId >org.apache.maven.plugin-tools</groupId >
2829 <artifactId >maven-plugin-annotations</artifactId >
Original file line number Diff line number Diff line change 1919 * under the License.
2020 */
2121
22- import javax .enterprise .context .SessionScoped ;
2322import javax .inject .Named ;
2423
2524import java .util .List ;
2625import java .util .concurrent .CopyOnWriteArrayList ;
2726
27+ import org .apache .maven .SessionScoped ;
28+
2829@ SessionScoped
2930@ Named
3031public class TestComponent
Original file line number Diff line number Diff line change 77 <packaging >pom</packaging >
88
99 <modules >
10- <module >plugin</module >
1110 <module >project-a</module >
1211 <module >project-b</module >
1312 </modules >
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments