diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3843PomInheritanceTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3843PomInheritanceTest.java index 1709ec037..55027ce97 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3843PomInheritanceTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3843PomInheritanceTest.java @@ -84,7 +84,16 @@ public void testitMNG3843() assertEquals( "", props.getProperty( "project.url", "" ) ); assertEquals( "", props.getProperty( "project.inceptionYear", "" ) ); assertEquals( "", props.getProperty( "project.build.defaultGoal", "" ) ); - assertMissing( props, "project.properties." ); + if ( matchesVersionRange( "[4.0.0-alpha-6,)" ) ) + { + assertEquals( "2", props.getProperty( "project.properties" ) ); + assertEquals( "UTF-8", props.getProperty( "project.properties.project.build.sourceEncoding" ) ); + assertEquals( "UTF-8", props.getProperty( "project.properties.project.reporting.outputEncoding" ) ); + } + else + { + assertMissing( props, "project.properties." ); + } assertMissing( props, "project.prerequisites." ); assertMissing( props, "project.modules." ); assertMissing( props, "project.licenses." );